Description Usage Arguments Examples
View source: R/rct-predict-S3.R
S3 method for predicting RCT_predict
results
1 2 |
object |
Object of class "bmbstats_RCT_predict" |
newdata |
Data used for prediction |
... |
Extra arguments forwarded to |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | data("vertical_jump_data")
m1 <- cv_model(
`Post-test` ~ `Pre-test` + Group,
vertical_jump_data,
control = model_control(
cv_repeats = 10,
cv_folds = 3,
cv_strata = vertical_jump_data$Group
)
)
m1_rct <- RCT_predict(
m1,
new_data = vertical_jump_data,
outcome = "Post-test",
group = "Group",
treatment_label = "Treatment",
control_label = "Control"
)
predict(m1_rct, vertical_jump_data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.