lognlm.fit {logNormReg}R Documentation

The fitter function for log Normal Linear Models

Description

lognlm.fit is called by lognlm to fit log Normal linear regression models. Two optimizing functions can be used, nlminb and optim. This function is not meant to be called by the user directly.

Usage

lognlm.fit(X, y, par, lik = TRUE, opt = c("nlminb", "optim"), 
    offset=NULL, weights=NULL,...)

Arguments

X

design matrix for standard linear terms.

y

vector of observations of length n.

par

starting values of parameters to be estimated.

lik

logical. See lik in lognlm

opt

the optimizing algorithm. Default to nlminb.

offset

a possible offset term.

weights

apossible weights to be used if lik=FALSE.

...

other arguments to be passed to the optimizer specified in opt.

Details

See lognlm for more details on the arguments and returned objects.

Value

A list of fit information

Note

This function should usually not be used directly by the user.

Author(s)

Vito M.R. Muggeo

See Also

nlminb, optim, lognlm

Examples

## See ?lognlm

[Package logNormReg version 0.5-0 Index]