set.seed(2026L)
x <- data.frame(exposure = rnorm(100))
y <- as.data.frame(matrix(rnorm(100 * 50), nrow = 100))
names(y) <- paste0("feature_", seq_len(ncol(y)))
y[["feature_3"]] <- y[["feature_3"]] + 0.8 * x[["exposure"]]
y[["feature_24"]] <- y[["feature_24"]] - 0.7 * x[["exposure"]]27 Mass-univariate analysis
Mass-univariate analysis fits a separate model for each response using a shared predictor set. It is used to characterize associations across many measurements, including molecular and imaging features.
27.1 Generate example data
27.2 Fit and display associations
fit <- massGLM(x, y)fit<MassGLM>
50 GLMs of family gaussian with 1 predictor each.
Available coefficients: exposure
plot(fit)plot_manhattan(fit)The volcano plot displays coefficients against negative log-transformed p-values. The Manhattan plot displays evidence across response variables. A displayed significance threshold describes the plotted statistic; the analysis must specify its treatment of multiple testing.
If associations are used to select predictors for a predictive model, perform that selection within the training data at each assessment split.