This function generates synthetic labeled and unlabeled data for survival analysis, simulating event times, censoring times, and covariates.

data_generation(n, N, lam)

Arguments

n

Integer specifying the number of labeled data points to generate

N

Integer specifying the number of unlabeled data points to generate

lam

Numeric value between 0 and 1 representing the proportion of event and censoring times used to generate the covariates

Value

A list containing the following generated data: - `Ti`: Event times for the labeled data - `Di`: Event indicators for the labeled data (1 for event, 0 for censored) - `Ci`: Censoring times for the labeled data - `Zi`: Covariate values for the labeled data - `Xi`: Minimum of event and censoring times for the labeled data - `Ti.UL`: Event times for the unlabeled data - `Ci.UL`: Censoring times for the unlabeled data - `Zi.UL`: Covariate values for the unlabeled data - `Xi.UL`: Minimum of event and censoring times for the unlabeled data