fit_nonlinear: Nonlinear Fit for WSE-w Relationship

Description Usage Arguments Details Examples

Description

Nonlinear Fit for WSE-w Relationship

Usage

1
fit_nonlinear(WSEw, h = 5, maxiter = 100)

Arguments

WSEw

WSEw data (at a given level of exposure)

h

minimum amount of data to perform fit

maxiter

maximum number of iterations for the parameter estimation algorithm

Details

Uses a default initial guess, but if the fit is very bad, attempts several fits performed with different starting guesses and returns the best fit. See attributes(fit)$ef for error flags. Value 0 means no error, 1 means not enough data points, 2 means singular gradient at initial guess for nlsLM

Examples

1
2
WSEw <- data.frame(WSE = NA, w = NA) # test case
model1 <- fit_nonlinear(WSEw, h = 5, maxiter = 100)

jschap1/WSEw documentation built on May 12, 2019, 10:50 a.m.