Learn R Programming

GUIgems (version 0.1)

cumulativeIncidence: Cumulative Incidence

Description

Calculates the cumulative incidence and prediction intervals after first state

Usage

cumulativeIncidence(object, times, M = 100)

Arguments

object
either the output of simulateCohort or the matrix with the probabilities slot of that output.
times
a time vector.
M
number of groups for calculating confidence intervals.

Value

an object of class "PosteriorProbabilities", containing the statenames, timepoints and the cumulative incidence with pointwise prediction intervals over time.

See Also

PosteriorProbabilities, ArtCohort, simulateCohort