CoxExample: Synthetic dataset with right-censored survival response

CoxExampleR Documentation

Synthetic dataset with right-censored survival response

Description

Randomly generated data for Cox regression example.

Usage

data(CoxExample)

Format

List containing the following elements:

x

1,000 by 30 matrix of numeric values.

y

1,000 by 2 matrix with column names "time" and "status". The first column consists of positive numbers representing time to event, while the second column represents the status indicator (0=right-censored, 1=observed).


glmnet documentation built on Aug. 22, 2023, 9:12 a.m.