powered by
evalGelObj
~~ Methods to compute the GEL objective function. ~~
# S4 method for momentModel,numeric,numeric evalGelObj(object, theta, lambda, gelType, rhoFct=NULL, ...)
An object of class "momentModel"
"momentModel"
The vector for coefficients.
Vector of Lagrange multiplier.
The type of GEL. It is either "EL", "ET", "EEL", "HD", "ETEL" or "ETHD".
"EL"
"ET"
"EEL"
"HD"
"ETEL"
"ETHD"
An alternative objective function for GEL. This argument is only used if we want to fit the model with a different GEL method. see rhoFct.
rhoFct
Arguments to pass to other methods
signature(object = "momentModel", theta = "numeric", lambda = "numeric")
data(simData) theta <- c(beta0=1,beta1=2) model1 <- momentModel(y~x1, ~z1+z2, data=simData) evalGelObj(model1, theta, c(.2,.3,.4), gelType="EL")
Run the code above in your browser using DataLab