View source: R/printfunctions.R
logLik.mcml | R Documentation |
Extracts the final log-likelihood value from an mcml object returned from call of 'MCML' or 'LA' in the Model class. The fitting algorithm estimates the fixed effects, random effects, and covariance parameters all separately. The log-likelihood is separable in the fixed and covariance parameters, so one can return the log-likelihood for either component, or the overall log-likelihood.
## S3 method for class 'mcml'
logLik(object, fixed = TRUE, covariance = TRUE, ...)
object |
An 'mcml' model fit. |
fixed |
Logical whether to include the log-likelihood value from the fixed effects. |
covariance |
Logical whether to include the log-likelihood value from the covariance parameters. |
... |
Further arguments passed from other methods |
An object of class 'logLik'. If both 'fixed' and 'covariance' are FALSE then it returns NA.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.