Calculate the Aalen-Johansen (1978) estimate in the Competing risk context. See Aalen, Odd O., and Søren Johansen. "An Empirical Transition Matrix for Non-Homogeneous Markov Chains Based on Censored Observations." Scandinavian Journal of Statistics 5, no. 3 (1978): 141-50. Accessed January 15, 2021. http://www.jstor.org/stable/4615704.
aalenjohansen(times, causes)
a list with components
times Unique times
surv Aalen-Johansen estimator for cause 1.
Event times.
Causes, with 0 coded as censored, 1 as cause of interest, other for competing.