boot.palm: Bootstrapping for fitted models

Description Usage Arguments Value Examples

View source: R/fit-ns.r

Description

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

Usage

1
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 boostrap procedure. These are accessed by functions such as summary.

The original R6 reference object, with additional bootstrap information attached.

Examples

1
2
3
4
5
6
7
8
9
## 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/nspp documentation built on June 4, 2017, 12:10 a.m.