Learn R Programming

marcox (version 1.0.0)

diabetes: Diabetes Study Data

Description

A dataset containing clinical information from a diabetes study.

Usage

data(diabetes)

Arguments

Format

A data frame with 166 rows and 6 variables:

risk

Numeric: Risk score of the patient.

cens

Binary (0/1): Censoring indicator (1 = event occurred, 0 = censored).

time

Numeric: Time to event or censoring (in months).

id

Integer: Patient ID.

trt

Binary (0/1): Treatment indicator (1 = treated, 0 = control).

age

Binary (0/1): Age group indicator (1 = older, 0 = younger).

Examples

Run this code
  data(diabetes)
  summary(diabetes)

Run the code above in your browser using DataLab