nlsBayesBoot: NLS Bayesian Bootstrap

Description Usage Arguments Details Value

View source: R/nlsaux.r

Description

Perform a Bayesian bootstrap for a fitted nls model.

Usage

1
nlsBayesBoot(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 argument 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

an array of bootrap samples


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