| massGLM | R Documentation |
Mass-univariate GLM Analysis
massGLM(x, y, scale_y = NULL, center_y = NULL, verbosity = 1L)
x |
tabular data: Predictor variables. Usually a small number of covariates. |
y |
data.frame or similar: Each column is a different outcome. The function will train one
GLM for each column of |
scale_y |
Logical: If TRUE, scale each column of |
center_y |
Logical: If TRUE, center each column of |
verbosity |
Integer: Verbosity level. |
MassGLM object.
EDG
set.seed(2022)
y <- rnormmat(500, 40, return_df = TRUE)
x <- data.frame(
x1 = y[[3]] - y[[5]] + y[[14]] + rnorm(500),
x2 = y[[21]] + rnorm(500),
g = factor(sample(letters[1:3], 500, replace = TRUE))
)
massmod <- massGLM(x, y)
# Print table of coefficients, p-values, etc. for all models
summary(massmod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.