View source: R/getLinearModelWithInteraction.R
getLinearModelWithInteraction | R Documentation |
run linear model with interaction between independent variable and specificed interaction variable
getLinearModelWithInteraction(
.data,
id,
key,
response,
independentVariable,
covariates,
interactionVariable,
adjustmentMethod = "none",
...
)
.data |
A dataframe |
id |
A string or numeric column - represents a unique observation within each key/group combination. PersonId, LabId, etc |
key |
A string or numeric column - key value for dataframe. Statistics will be computed between groups for each key value |
response |
numeric column - used as response variable in linear model |
independentVariable |
a string or numeric column used as independent variable in linear model |
covariates |
vector of features names in the dataset to be added to linear model as covariates |
interactionVariable |
a string or numeric column in dataset to be added to interaction term with response variable |
adjustmentMethod |
optional argument specifiying multiple hypothesis correction to apply to linear model result - defaults to "none" |
... |
dots - accomodate additional arguments when function is called as parent router |
dataframe containing resulting p.values for each key/group stat test
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.