models_in_list: Estimate linear mixed and / or gamm4 and/or piecewise linear...

Description Usage Arguments Value Author(s) References Examples

View source: R/models_in_list.R

Description

Estimate linear mixed and / or gamm4 and/or piecewise linear and/or polynomial models and return in a list.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
models_in_list(
  clean_DF,
  metric = c("linear", "AUC", "ITGR"),
  study_ID_value,
  progress,
  number_basis_vecs,
  min_basis_vecs,
  max_basis_vecs,
  weight_lmer_option = c("uniform", "overweight_baseline"),
  lme4_formula = formula("y ~ group + group:x + ( 1 + x | ID )"),
  gam_formula_char_list = list(prefix = "y ~ group +  s( x, bs = \"tp\", k =", suffix
    = ", by = group )"),
  allow_basis_vec_n_change = TRUE,
  allowed_number_fix_attempts = 20
)

Arguments

clean_DF

data.frame with study data loaded and organized for the modeling call.

metric

character vector specifying what metric(s) to use in longitudinal modeling.

study_ID_value

character string with five digit DIVOS study ID, OR a DivoStudy object.

progress

logical determining whether to send interim progress messages.

number_basis_vecs

numeric: number of basis_vecs to include in spline basis used by mgcv

min_basis_vecs

numeric lower bound on number of basis_vecs in spline basis.

max_basis_vecs

numeric upper bound on number of basis_vecs in spline basis.

weight_lmer_option

character ("uniform" or "overweight_baseline") specifying which of two weighting option schemes to use for linear modeling intercept.

lme4_formula

formula for lmer() call.

gam_formula_char_list

two component list of character strings providing the mgcv::gam() formula prefix & suffix to the basis_vec value.

allow_basis_vec_n_change

logical allow the function to change the number of basis_vecs to avoid a crash?

allowed_number_fix_attempts

numeric nonnegative integer.

Value

An R list with named output.

Author(s)

Bill Forrest <forrest@gene.com>

Bill Forrest forrest@gene.com

References

www.r-project.org

Examples

1
 cat('Currently no working example for models_in_list().')

wfforrest/maeve documentation built on Jan. 1, 2021, 12:47 p.m.