Learn R Programming

Biograph (version 2.0.6)

Biograph.msm: Biograph to msm format

Description

Converts Biograph object to input data for msm package (long format)

Usage

Biograph.msm(Bdata)

Arguments

Bdata
Biography object

Value

References

Jackson, C. (2011). Multi-state models for panel data: the msm package for R. Journal of Statistical Software, 38(8), 28 pp.

Jackson, C. (2013). msm: Multi-state Markov and hidden Markov models in continuous time. Available at the CRAN repository.

Examples

Run this code
 data(GLHS)
 D <- Biograph.msm (GLHS)
 # Function statetable.msm of msm package
 require(msm)
 statetable.msm(state,ID,data=D)

Run the code above in your browser using DataLab