nlsParBoot: NLS Parametric Bootstrap

Description Usage Arguments Details Value

View source: R/nlsaux.r

Description

Perform a parametric bootstrap for a fitted nls model.

Usage

1
nlsParBoot(object, nboot = 99, statistic = coef)

Arguments

object

A fitted nls object.

nboot

Number of bootstrap samples.

statistic

A function that takes a fitted nls object as its first arguement and returns a vector of test statistics.

Details

The user must provide a function to compute the test statistic from a fitted nls object. The test statistic is computed for each bootstrap sample and the results stored as a list in the boot component of the returned object. If nls fails to converge for any bootstrap sample NULL is returned for that sample.

Value

Returns an object of class nlsBoot containing

call

the matched call

statistic

the test statistic

nls

the fitted nls object

boot

a list of bootrap samples


SWotherspoon/nlsaux documentation built on May 29, 2018, 9:24 p.m.