Description Usage Arguments Details Value
View source: R/make-em-model-specifications.R
EXPIREMENTAL: Creates a list with model specifications for polynomial constrained mixed effect model with monotonic mean and (potentially) monotonic random effects.
For use with constrained_lmm_em
and constrained_lmm_mcem
. See mixed effects vignette for usage details.
1 2 3 | make_em_model_specs(formula, group_name = "grp", data, p_degree, r_degree,
r_constrained = F, mcontr_region = c(-1, 1),
rcontr_region = mcontr_region)
|
formula |
Usage: y ~ x, replaced by actual names. |
group_name |
character column name of group in data. |
data |
data.frame containing y and x. |
p_degree |
degree of mean polynomial. |
r_degree |
degree of polynomial random effects. |
r_constrained |
should the polynomial random effects be constrained? |
mcontr_region |
Over what region should monotonicity apply to the mean polynomial? |
rcontr_region |
Over what region should monotonicity apply to the random effects polynomials? Defaults to (and generally should be) |
The interface and default actions of this function are under development and may change without warning. See the mixed effects vignette for usage details.
list speficying model to be passed to fitting methods.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.