form_gen: ComBatFamily Model Formula Generations

View source: R/Help_Func.R

form_genR Documentation

ComBatFamily Model Formula Generations

Description

Generate appropriate formula for ComBatFamily models

Usage

form_gen(x, c = NULL, i = NULL, random = NULL, smooth = NULL)

Arguments

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 model.

i

Expression of interaction terms supplied to model. (eg: "age:diagnosis").

random

Variable name of a random effect in linear mixed effect model.

smooth

Variable name that requires a smooth function.

Value

A string of formula

Examples

covariates <- adni[, c("AGE", "SEX")]
form_gen(x = "lm", c = covariates)


ComBatFamQC documentation built on April 4, 2025, 12:24 a.m.