| logLik.mle.vam | R Documentation |
logLik.mle.vam computes the log-likelihood of the parameters of a virtual age model for Corrective Maintenance (CM) and planned Preventive Maintenance (PM).
logLik.mle.vam(obj,par0,with_value=TRUE,with_gradient=FALSE,with_hessian=FALSE)
obj |
an object of class |
par0 |
an optional argument specifying the parameter values at which the log-likelihood is computed.
If |
with_value |
a logical which indicates if the value of the log-likelihood has to be computed. |
with_gradient |
a logical which indicates if the gradient of the log-likelihood has to be computed. |
with_hessian |
a logical which indicates if the hessian of the log-likelihood has to be computed. |
If only with_value is TRUE, the method produces the log-likelihood value.
If only with_gradient is TRUE, the method produces a vector corresponding to the gradient of the log-likelihood,
If only with_hessian is TRUE, the method produces a matrix corresponding to the hessian of the log-likelihood.
Otherwise, the method produces a list of the log-likelihood characteristics for which the corresponding argument is TRUE.
L. Doyen and R. Drouilhet
run.mle.vam to compute the MLE.
coef.mle.vam to extract the parameters value of the MLE.
contrast.mle.vam to compute the contrast associated to the MLE.
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.
simARAInf<-sim.vam( ~ (ARAInf(.4) | Weibull(.001,2.5)))
simData<-simulate(simARAInf,30)
mleARAInf <- mle.vam(Time & Type ~ (ARAInf(0.5) | Weibull(1,3)),data=simData)
logLik(mleARAInf,c(0.02,2.4,0.4))
Est<-coef(mleARAInf)
contrast(mleARAInf)
logLik(mleARAInf)
logLik(mleARAInf,Est,c(TRUE,TRUE,TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.