sim_formula_compare: Compare multiple simulation formulas

Description Usage Arguments Value See Also Examples

Description

This functions allows comparing multiple models fit to the same data set during simulation.

Usage

1

Arguments

...

Named formulas that should be compared, see Examples.

Value

Object with class plcp_compare_sim_formula

See Also

sim_formula

Examples

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)

powerlmm documentation built on May 2, 2019, 3:10 a.m.