trial_data: Generated clinical trial data with binary response
Description
Generated with logistic regression model:
$$logit(P(Y_{ij} = 1 | gender_i, age_{i1}, age_{i2})) = 3*gender_i +3*age_{i1} +3*age_{i2}$$
The data frame can be used to run GLM clinical trial example in Huang, Tong, Yang (2023)
Usage
trial_data
Arguments
Format
A data frame with 500 rows and 6 variables:
gender
gender of the patients
age_1
1 or 0, whether or not the patient belongs to 18-25 age group
age_2
1 or 0, whether or not the patient belongs to 26-64 age group
label
stratification group in terms of gender and age, 1 to 6
Y
treatment effective or not, Y=1 means treatment is effective to the patient