Bootstrap: Method for Bootstrapping

Description Usage Arguments Value Author(s) Examples

Description

this method provides bootstrapping statistics.

Usage

1
2
3
4
5
6
7
Bootstrap(x, ...)

## Default S3 method:
Bootstrap(x, nboots = 30, FUN, ...)

## S3 method for class 'model'
Bootstrap(x, ...)

Arguments

x

is a vector or a fitted model object whose parameters will be used to produce bootstrapped statistics. Model objects are assumed to be of class “glm” or “lm”.

nboots

an integer for the number of reiteration.

FUN

a statistic function name to bootstrap, i.e., 'mean', 'var', 'cov', etc.

...

further arguments passed to or used by other methods.

Value

A list with “alpha” and “beta” slots. The “alpha” corresponds to ancillary parameters and “beta” to systematic components of the model.

Author(s)

Daniel Marcelino, dmarcelino@live.com

Examples

1
2
x = runif(10, 0, 1)
Bootstrap(x, FUN=mean)

SciencesPo documentation built on May 29, 2017, 9:28 p.m.