Create a list of nls objects with the option of using nlsLM in addition to nls
This function is a copy of 'nlsList' from the 'nlme' package modified to use the 'nlsLM' function in addition to (optionally) 'nls'. By changing the algorithm argument it is possible to use 'nls' as well
nlsLMList( model, data, start, control, level, subset, na.action = na.fail, algorithm = c("LM", "default", "port", "plinear"), pool = TRUE, warn.nls = NA )
model |
either a nonlinear model formula, with the response on the left of a ~ operator and an expression involving parameters, covariates, and a grouping factor separated by the | operator on the right, or a selfStart function. |
data |
a data frame |
start |
list with starting values |
control |
control list, see |
level |
an optional integer specifying the level of grouping to be used when multiple nested levels of grouping are present. |
subset |
subset of rows to use |
na.action |
a function that indicates what should happen when the data contain NAs. The default action (na.fail) causes nlsList to print an error message and terminate if there are any incomplete observations. |
algorithm |
choice of algorithm. Default is 'LM' which uses 'nlsLM' from the minpack.lm package. Other options are: “default”, “port” and “plinear” (nls). |
pool |
an optional logical value that is preserved as an attribute of the returned value. This will be used as the default for pool in calculations of standard deviations or standard errors for summaries. |
warn.nls |
logical indicating if nls errors (all of which are caught by tryCatch) should be signalled as a “summarizing” warning. |
Jose C. Pinheiro and Douglas M. Bates bates@stat.wisc.edu wrote the original nlsList
. Fernando E. Miguez made minor changes to use nlsLM
in addition to (optionally) nls
. R-Core maintains copyright after 2006.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.