MM-estimate of a nonlinear function, Using Nelder Mead derivative free optimization method.
nlmest.NM(formula, data, start = getInitial(formula, data), robfunc,
control = nlr.control(tolerance = 1e-04,
minlanda = 1/2^25, maxiter = 100 * length(start), robscale = T),
vm = NULL, rm = eiginv(t(chol(vm))), delta = NULL, ...)
nl.form object of the nonlinear function model. See nl.form
object.
list of data with the response and predictor as name of variable. In heterogeneous case if it include response variable values of heterogenous variance function it asume variance function is function of predictor \(H(x_i,\tau)\), otherwise it assume is a function of predictor \(H(f(x_i,\theta),\tau)\).
list of starting value parameter, name of parameters must be represented as names of variable in the list.
nl.form object of robust function used for downgrading.
nlr.control object, include tolerance, maxiter,... see nlr.control
.
NULL, optional covariance matrix of residuals, used for nonlinear generalized M-estimate.
optional correlation matrix, used for nonlinear generalized M-estimate. rm is correlation matrix of vm, thus only vm is enough to be given. It can be given by user also but not necessary automatically will be calculated by argument eiginv(t(chol(vm))).
increament of Nelder Mead method, default will be calculated 10% of parameter values, in the case of nonconvergence it can be modified manually to acheive convergence.
any other argument passed to formula, robfnc, or optimization function.
result is object of nl.fitt.rob (nonlinear fitt robust) for homogeneous variance, and nl.fitt.rgn for heterogeneous and autocorrelated error (nonlinear fitt robust generalized), see nl.fitt.rgn object detail.
nonlinear regression parameter estimate of \(\theta\).
of fited model.
nl.form
object of called nonlinear regression model.
computed response.
computed (right side of formula) at estimated parameter with gradient and hessian attributes.
list of curvatures, see curvature
function.
matrix of convergence history, collumns include: convergence index, parameters, minimized objective function, convergence criterion values, or other values. These values will be used in plot
function in ploting history.
fittmethod
object of method used for fitt.
list of called data.
Object of class "callorNULL"
source function called for fitt.
Fault
object of error, if no error Fault number = 0 will return back.
robust loss value including gradient and hessain attributes.
computed robust rho function, including gradient and hessain attributes.
estimated residuals, including gradient and hessain attributes.
curvature
nl.form
object of robust loss rho function.
covariance matrix, diagonal of variance model predicted values.
cholesky decomposition of vm.
transformed of response by rm, include gradinet and hessian attributes.
transformed of predictor by rm, include gradinet and hessian attributes.
Nelder Mead is derivative free optimization method. It is used to minimize the robust loss function using \(\rho\) function. This method is very slow and sugest to use with a large maximum number of iterations.
The function smptry2
Find next minimum point in Nelder-Mead algorithm. It used for internal usage might not be called by user directly.
Statistical Computing with R, Maria L. Rizzo, 2008, Chopman & Hall/CRC
# NOT RUN {
ntpstart=list(p1=.12,p2=6,p3=1,p4=33)
ntpstarttau=list(tau1=-.66,tau2=2,tau3=.04)
datalist=list(xr=ntp$dm.k,yr=ntp$cm.k)
datalist[[nlrobjvarmdls3[[2]]$independent]]<-ntp$dm.k
fittnml <- nlmest.NM(formula=nlrobj1[[15]], data = list(xr=ntp$dm.k,yr=ntp$cm.k), start=ntpstart,
robscale = TRUE, robfunc = nl.robfuncs[["hampel"]],control=nlr.control(tolerance=1e-8,trace=TRUE))
fittnml$parameters
# }
Run the code above in your browser using DataLab