Skip to contents

Generate event times, censoring times, an event indicator, and covariates for examples where right tail behavior and positive support matter.

Usage

sim_survival_tail(n = 250, seed = NULL)

Arguments

n

Integer sample size.

seed

Optional random seed.

Value

Data frame containing observed time time, event indicator status, and covariates.

Details

Event times are sampled from an exponential model with covariate-dependent mean, then censored by an independent uniform censoring time. The observed time is $$ \tilde{T} = \min(T, C), \qquad \Delta = I(T \le C). $$

This helper is mainly for experimentation and stress-testing positive-support kernels; it does not implement a dedicated survival model from the package API.

See also