powered by
Example Data (Study B)
data("exampledataB")
A data frame with 500 observations from a treatment group and 400 observations from a control group:
A
the treatment assignment, where 1 indicates treatment and 0 indicates control
W
the baseline covariate of interest
S
the surrogate outcome
Y
the primary outcome
delta
the indicator for strong surrogacy, where 1 indicates strong and 0 indicates weak
data(exampledataB) names(exampledataB)
Run the code above in your browser using DataLab