Description Usage Arguments Details Author(s) References See Also Examples
Tools to help the fit of nonlinear models with nls
1 2 3 |
formula |
formula of a non-linear model |
data |
a data frame with header matching the variables given in the formula |
start |
a list of parameter starting values which names match the parameters given in the formula |
variable |
index of the variable to be plotted against the predicted values; default is the first independent variable as it appear in the orginal dataset |
x |
an object of class 'nls' |
smooth |
a logical value, default is FALSE. If smooth is TRUE, a plot of observed values is plotted as a function of 1000 values continuously taken in the range interval [min(variable),max(variable)]. This option can only be used if the number of controlled variables is 1. |
xlab |
X-label |
ylab |
Y-label |
pch.obs |
type of point of the observed values |
pch.fit |
type of point of the fitted values (not applicable if smooth=TRUE) |
lty |
type of line of the smoothed fitted values (if smooth=TRUE) |
lwd |
thickness of line of the smoothed fitted values (if smooth=TRUE) |
col.obs |
color of the observed points |
col.fit |
color of the fitted values |
... |
further arguments passed to or from other methods |
The function preview
helps defining the parameter starting values prior fitting the model. It provides a superimposed plot of observed (circles) and predicted (crosses) values of the dependent variable versus one of the independent variables with the model evaluated at the starting values of the parameters. The function overview
returns the parameters estimates, their standard errors as well as their asymptotic confidence intervals and the correlation matrix (alternately, the function confint
provides better confidence interval estimates whenever it converges). plotfit
displays a superimposed plot of the dependent variable versus one the independent variables together with the fitted model.
Florent Baty florent.baty@gmail.com
Marie-Laure Delignette-Muller ml.delignette@vetagro-sup.fr
Bates DM and Watts DG (1988) Nonlinear regression analysis and its applications. Wiley, Chichester, UK.
nls
in the stats
library and confint.nls
in the package MASS
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.