Description Usage Arguments Details Value Note Author(s) References Examples
Converts Biograph object to long format used as input data in mvna package.
1 | Biograph.mvna(Bdata)
|
Bdata |
Biograph object |
The function performs four operations on data in Biograph format:
a. It checks whether intrastate transitions are omitted, i.e. that the diagonal elements are zero. If that is not the case, then it calls the Remove.intrastate function to remove the intrastate moves.
b. It calls the Parameters function to determine the parameters associated with the Biograph object with diagonal elements removed.
c. It calls the Biograph.long function to create an object having the data in long format.
d. It adds to the data frame the variables entry and exit and it changes the variable name of the subject identification number from ID to id.
D |
Data frame of class "mvna" (only variables that are required) |
D.cov |
Data in mvna format, including covariates and some other variables |
par |
Object produced by Parameters function, including the object trans_possible: possible transitions |
cens |
Character string denoting censoring (it is "cens") |
Function Biograph.mvna uses the functions Extract, remove.intrastate and Biograph.long
Frans Willekens
Allignol, A., J. Beyersmann and M. Schumacher (2008) mvna: An R package for the Nelson-Aalen estimator in multistate models. R Newsletter, 8(2):48-50
Allignol, A., M. Schumacher and J. Beyersmann (2011). Empirical transition matrix of multistate models: the etm package. Journal of Statistical Software, 38(4), 15 pp.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.