Description Usage Arguments Value See Also Examples
This functions allows comparing multiple models fit to the same data set during simulation.
1 |
... |
Named formulas that should be compared, see Examples. |
Object with class plcp_compare_sim_formula
1 2 3 4 5 6 7 8 9 | # Formulas can be a named character
# uses the defaults 'sim_formula()'
f <- sim_formula_compare("m0" = "y ~ time * treatment + (1 | subject)",
"m1" = "y ~ time * treatment + (1 + time | subject)")
# Can also use sim_formula()
f0 <- sim_formula("y ~ time * treatment + (1 | subject)")
f1 <- sim_formula("y ~ time * treatment + (1 + time | subject)")
f <- sim_formula_compare("m0" = f0, "m1" = f1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.