cif_aalen_johansen {adjustedCurves}R Documentation

Group-Specific Aalen-Johansen CIFs

Description

This page explains the details of estimating standard Aalen-Johansen cumulative incidence functions, stratified by the group variable (method="aalen_johansen" in the adjustedcif function). All regular arguments of the adjustedcif function can be used. Further arguments specific to this method are listed below.

NO adjustment for any confounders are made. This function is included only for reference and should not be used when confounder adjusted CIFs are desired.

Arguments

...

Further arguments passed to cuminc.

Details

This function is just a convenient wrapper around the cuminc function. See ?cuminc or the cited literature for more details.

Value

Adds the following additional objects to the output of the adjustedsurv function:

Author(s)

The wrapper function was written by Robin Denz, the cuminc function (which this wrapper is build around) was written by other people. See ?cuminc for more details.

References

Odd O. Aalen and Søren Johansen (1978). "An Empirical Transition Matrix for Non-Homogeneous Markov Chains Based on Censored Observations". In: Scandinavian Journal of Statistics 5.3, pp. 141-150

See Also

cuminc

Examples

library(adjustedCurves)
library(cmprsk)

set.seed(42)

# simulate some data as example
sim_dat <- sim_confounded_crisk(n=50, max_t=5)
sim_dat$group <- as.factor(sim_dat$group)

# calculate un-adjusted aalen-johansen estimates
adjcif <- adjustedcif(data=sim_dat,
                      variable="group",
                      ev_time="time",
                      event="event",
                      cause=1,
                      method="aalen_johansen")

# plot the curves
plot(adjcif)

[Package adjustedCurves version 0.11.0 Index]