powered by
Generate appropriate formula for ComBatFamily models
form_gen(x, c = NULL, i = NULL, random = NULL, smooth = NULL)
A string of formula
A model function name that is used or to be used in the ComBatFamily Package (eg: "lmer", "lm", "gam").
Data frame or matrix of covariates supplied to model.
model
Expression of interaction terms supplied to model. (eg: "age:diagnosis").
Variable name of a random effect in linear mixed effect model.
Variable name that requires a smooth function.
covariates <- adni[, c("AGE", "SEX")] form_gen(x = "lm", c = covariates)
Run the code above in your browser using DataLab