cohort_2 | R Documentation |
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.
cohort_2
A data frame with 100000 rows and 8 variables:
Subject ID of each subject.
Event/censoring indicator. Events are indicated by y=1.
Event/censoring time (in years). Maximum follow-up time is 25 years.
Binary exposure.
Age of subjects (rounded to integers and mean-centred).
Age category of subjects.
Gender of subjects (1 for male and 0 for female).
Binary effect modifier.
library(survival) data("cohort_2", package = "SamplingDesignTools") summary(coxph(Surv(t, y) ~ x * z + age + gender, data = cohort_2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.