form_gen | R Documentation |
Generate appropriate formula for ComBatFamily models
form_gen(x, c = NULL, i = NULL, random = NULL, smooth = NULL)
x |
A model function name that is used or to be used in the ComBatFamily Package (eg: "lmer", "lm", "gam"). |
c |
Data frame or matrix of covariates supplied to |
i |
Expression of interaction terms supplied to |
random |
Variable name of a random effect in linear mixed effect model. |
smooth |
Variable name that requires a smooth function. |
A string of formula
covariates <- adni[, c("AGE", "SEX")]
form_gen(x = "lm", c = covariates)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.