Learn R Programming

palm (version 1.1.5)

boot.palm: Bootstrapping for fitted models

Description

Carries out a parametric bootstrap procedure for models fitted using the palm package.

Usage

boot.palm(fit, N, prog = TRUE)

Value

The original model object containing additional information from the bootstrap procedure. These are accessed by functions such as summary.palm and confint.palm. The bootstrap parameter estimates can be found in the boots

component of the returned object.

Arguments

fit

A fitted object.

N

The number of bootstrap resamples.

prog

Logical, if TRUE, a progress bar is printed to the console.

Examples

Run this code
## Fit model.
fit <- fit.ns(example.2D, lims = rbind(c(0, 1), c(0, 1)), R = 0.5)
## Carry out bootstrap.
fit <- boot.palm(fit, N = 100)
## Inspect standard errors and confidence intervals.
summary(fit)
confint(fit)
## Estimates are very imprecise---these data were only used as
## they can be fitted and bootstrapped quickly for example purposes.

Run the code above in your browser using DataLab