make_em_model_specs: Specify model for a monotone-constrained polynomial LMM

Description Usage Arguments Details Value

View source: R/make-em-model-specifications.R

Description

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.

Usage

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)

Arguments

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) mcontr_region.

Details

The interface and default actions of this function are under development and may change without warning. See the mixed effects vignette for usage details.

Value

list speficying model to be passed to fitting methods.


bonStats/gcreg documentation built on May 20, 2019, 5:44 p.m.