sample {bootstrap}R Documentation

Description

Sample a (residual) triangle, with replacement. This is the core of bootstrapping theory.

Usage

sample(x, size, replace = FALSE, prob = NULL)

Arguments

x ~The residual triangle
size
replace ~default to TRUE
prob

Value

a new triangle object

Note

This overwrites the generic function sample in global environment.

Examples

newtriangle<-sample(triangle)


[Package bootstrap version 1.0-1 Index]