
Last chance! 50% off unlimited learning
Sale ends in
expression
to nl.form
Convert two sided (or one sided) expression formula to nl.form
object using derive3
from MASS
library.
convexpr2nlform(form, namesdata=NULL, start, inv = NULL, name="User Defined",...)
Must be one sided expression (defined by ~formula) or two sided (response~predictor), nonlinear regression function, include parameters, response and predictor variables.
optional character vector of name of data include independent and possibly dependent in two sided fomula.
list of parameters, for which the gradinet and hessian will be computed.
A character name for the model
inverse of the nonlinear functin model
Ane extra argument pass to nl.form
nl.form
object of the nonlinear regression function.
formula one sided or two sided with gradinet and hessian as attribute.
="formula"
=length(start) is number of parameters.
="User Defined"
=start parameters.
character vector of name of dependent variable.
character vector of name of independent variable.
=form
nlr
package is gradient based algorithm, is based nl.form
object in which gradient and hessian is available. If a nonlinear regression model formula is one sided or two sided formula and its gradient and hessian exist, the convexpr2nlform
convert it to nl.form
object by calling derive3
from MASS
library. Although the existence of derivative is strong assumption but using advance programs can acheive high precision computing.
Rizo ML 2008 Statistical Computing with R The R Series. Chapman & Hall/CRC The R Series.
# NOT RUN {
## The function is currently defined as
nlf=convexpr2nlform(yr ~ (a)*(exp(-b*xr)-exp(-c*xr)), start = list(a=.05,b=4.39,c=21.6))
nlf
# }
Run the code above in your browser using DataLab