Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

logLik.msm

Extract model log-likelihood


Description

Extract the log-likelihood and the number of parameters of a model fitted with msm.

Usage

## S3 method for class 'msm'
logLik(object, by.subject=FALSE, ...)

Arguments

object

A fitted multi-state model object, as returned by msm.

by.subject

Return vector of subject-specific log-likelihoods, which should sum to the total log-likelihood.

...

(unused) further arguments passed to or from other methods.

Value

The log-likelihood of the model represented by 'object' evaluated at the maximum likelihood estimates.

Akaike's information criterion can also be computed using AIC(object).

Author(s)

See Also


msm

Multi-State Markov and Hidden Markov Models in Continuous Time

v1.6.8
GPL (>= 2)
Authors
Christopher Jackson <chris.jackson@mrc-bsu.cam.ac.uk>
Initial release
2019-12-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.