boot.palm: Bootstrapping for fitted models

View source: R/fit-ns.r

boot.palmR Documentation

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)

Arguments

fit

A fitted object.

N

The number of bootstrap resamples.

prog

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

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.

Examples

## 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.


b-steve/palm documentation built on Sept. 22, 2023, 9:27 a.m.