interaction_gen | R Documentation |
Generate appropriate interaction terms for regression models.
interaction_gen(
type = "lm",
covariates = NULL,
smooth = NULL,
interaction = NULL,
smooth_int_type = NULL
)
type |
The type of model to be used for batch effect evaluation or harmonization (eg: "lmer", "lm", "gam"). |
covariates |
Name of covariates supplied to |
smooth |
Variable names that require a smooth function. |
interaction |
Expression of interaction terms supplied to |
smooth_int_type |
A vector that indicates the types of interaction in |
interaction_gen
returns a list containing the following components:
interaction |
A vector of interaction terms to be included |
covariates |
Modified covariates after expressing interaction terms |
smooth |
Modified smooth terms after expressing interaction terms |
interaction_gen(type = "lm", covariates = c("AGE", "SEX", "DIAGNOSIS"),
interaction = "AGE,DIAGNOSIS")
interaction_gen(type = "gam", covariates = c("AGE", "SEX", "DIAGNOSIS"),
smooth = "AGE", smooth_int_type = "linear", interaction = "AGE,DIAGNOSIS")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.