aalen_johansen: Compute the conditional Aalen-Johansen estimator.

View source: R/Aalen-Johansen.R

aalen_johansenR 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.


AalenJohansen documentation built on March 7, 2023, 6:43 p.m.