formula.mle.vam: Return the plug-in and original model of 'mle.vam' object

View source: R/vam.R

formula.model.vamR Documentation

Return the plug-in and original model of mle.vam object

Description

formula returns, for a mle.vam object, the original formula and the formula in which the estimated values of the parameters have been plug-in.

Usage

## S3 method for class 'mle.vam'
formula(self,origin=FALSE)

Arguments

self

an object of class mle.vam.

origin

a logical which indicates if the original formula has also to be returned.

Value

If origin==FALSE, formula function returns a formula similar to the one used to construct the self object, but with parameter values which have been replaced by the ones previously estimated in the self object. Otherwise, it retruns a two dimentional list. The first argument $formula is the same plug-in estimated formula. Ans the second argument $origin is the original formula.

Author(s)

L. Doyen and R. Drouilhet

See Also

run.mle.vam to compute the MLE. contrast.mle.vam to compute the contrast associated to the MLE. coef.mle.vam to extract the parameters value of the MLE. logLik.mle.vam to compute the log-likelihood. formula.mle.vam to extract the original and estimated model. plot.mle.vam for plotting characteristics of the model. update.mle.vam to change the associated data set.

Examples

simCMPM<-sim.vam(  ~ (ARAm(.7|3) | Weibull(.001,2.5)) & (ARAInf(.4) | AtIntensity(0.2)))
simData=simulate(simCMPM,50)
mleCMPM <- mle.vam(Time & Type ~ (ARAm(.5|3) | Weibull(1,3)) & (ARAInf(0.5)),data=simData)
formula(mleCMPM)
coef(mleCMPM)

rcqls/VAM documentation built on Jan. 14, 2024, 9:07 p.m.