cohort_1: Simulated cohort 1

cohort_1R Documentation

Simulated cohort 1

Description

Survival outcome was simulated with true hazard:

\log \{h(t)\} = \log \{h_0\} + \log(1.1)Age + \log(2)Gender.

Usage

cohort_1

Format

A data frame with 10000 rows and 5 variables:

id

Subject ID of each subject.

y

Event/censoring indicator. Events are indicated by y=1.

t

Event/censoring time (in years). Maximum follow-up time is 25 years.

age

Age of subjects (rounded to integers).

gender

Gender of subjects (1 for male and 0 for female).

Examples

library(survival)
data("cohort_1", package = "SamplingDesignTools")
summary(coxph(Surv(t, y) ~ age + gender, data = cohort_1))


nyilin/SamplingDesignTools documentation built on Nov. 20, 2022, 8:07 a.m.