aalen_johansen {AalenJohansen} | R Documentation |
Compute the conditional Aalen-Johansen estimator.
Description
Compute the conditional Aalen-Johansen estimator.
Usage
aalen_johansen(
data,
x = NULL,
a = NULL,
p = NULL,
alpha = 0.05,
collapse = FALSE
)
Arguments
data |
A list of trajectory data for each individual. |
x |
A numeric value for conditioning. |
a |
A bandwidth. Default uses an asymmetric version using alpha. |
p |
An integer representing the number of states. The absorbing state is last. |
alpha |
A probability around the point x, for asymmetric sub-sampling. |
collapse |
Logical, whether to collapse the last state of the model. |
Value
A list containing the Aalen-Johansen estimator, the Nelson-Aalen estimator, and related quantities.
[Package AalenJohansen version 1.0 Index]