Biograph.long: Converts Biograph object to long format

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Converts Biograph object to long format used by e.g. the survival and eha packages.

Usage

1

Arguments

Bdata

Biograph object

Details

The function firsts calls Parameters if that function was not called before. The long format is produced by the reshape function. A few variables are added. The long format produced by Biograph.long is used by the survival and eha packages. The mstate, mvna and msm packages require a different long format. Biograph.mstate, Biograph.mvna and Biograph.msm produce these formats.

Value

Devent

Data frame with event data: one record for each transition

Depisode

Data frame with episode data: one record for each episode

Author(s)

Frans Willekens

References

Willekens (2011)

See Also

Biograph.mstate, Biograph.mvna, Biograph.msm

Examples

1
2
 data(GLHS)
 D <- Biograph.long (Bdata=GLHS)

Biograph documentation built on May 1, 2019, 8:48 p.m.