sim_formula | R Documentation |
Create a simulation formula
sim_formula(formula, data_transform = NULL, test = "time:treatment")
formula |
A |
data_transform |
Optional; a |
test |
A |
It is possible to fit model without any random effects. If no random effects is specified
the model is fit using lm()
.
Object with class plcp_sim_formula
sim_formula_compare
, transform_to_posttest
# 2-lvl model
f <- sim_formula("y ~ treatment * time + (1 + time | subject)")
# ANCOVA using 'data_transform'
f <- sim_formula("y ~ treatment + pretest",
data_transform = transform_to_posttest,
test = "treatment")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.