nevents: Count number of observed transitions.

Description Usage Arguments Details Author(s) References Examples

Description

Given a dataset of class "survIDM", this function counts the number of observed transitions in the multi-state model.

Usage

1
nevents(dataidm, state.names=NULL)

Arguments

dataidm

A dataframe including at least four columns named time1, event1, Stime and event, which correspond to disease free survival time, disease free survival indicator, time to death or censoring, and death indicator, respectively.

state.names

Names for the transition states. If NULL (default), transition states are named by "healthy", "illness" and "death".

Details

The colums of the dataset needs to have the format of class "survIDM", which holds the transition matrix of the multi-state model.

Author(s)

Luis Meira-Machado, Marta Sestelo and Gustavo Soutinho.

References

L. Meira-Machado, J. de Una-Alvarez, C. Cadarso-Suarez, and P. Andersen. Multi-state models for the analysis of time to event data. Statistical Methods in Medical Research, 18:195-222, 2009.

J. de Una-Alvarez and L. Meira-Machado. Nonparametric estimation of transition probabilities in the non-markov illness-death model: A comparative study. Biometrics, 71(2):364-375, 2015.

L. Meira-Machado and M. Sestelo. Estimation in the progressive illness-death model: A nonexhaustive review. Biometrical Journal, 2018.

Examples

1
2
3
nevents(colonIDM)

nevents(colonIDM, c('State1','State2', 'State3'))

survidm documentation built on May 2, 2019, 2:14 p.m.