cohort_2: Simulated cohort 2

cohort_2R Documentation

Simulated cohort 2

Description

Survival outcome was simulated with true hazard:

\log \{h(t)\} = \log \{h_0\} + \log(1.5)x + \log(4)z + \log(2)xz + \log(1.01)Gender + \log(1.01)Age.

Usage

cohort_2

Format

A data frame with 100000 rows and 8 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.

x

Binary exposure.

age

Age of subjects (rounded to integers and mean-centred).

age_cat

Age category of subjects.

gender

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

z

Binary effect modifier.

Examples

library(survival)
data("cohort_2", package = "SamplingDesignTools")
summary(coxph(Surv(t, y) ~ x * z + age + gender, data = cohort_2))


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