Best Practices for Developing Linear Models With Multiple Explanatory Variables

Linear models, including t-test, ANOVA, regression, ANCOVA, and generalized linear models, are foundational tools in statistical analysis. For large datasets, such as those involving tens of thousands of genes and millions of records, numerous advanced methods have been developed to improve both computational efficiency and reliability. Here, we focus on a more general scenario: a linear model with many explanatory variables (e.g., >10) and a moderate sample size (e.g., thousands of observations). This paper provides the best practices for model selection, emphasizing the importance of including two-way interaction and quadratic terms, which are frequently overlooked in textbooks and classic literature. When dealing with high-dimensional data, we recommend using random forest for initial variable screening, followed by subset selection methods such as stepwise regression. Model selection can be guided by criteria like AIC, BIC, adjusted R<sup>2</sup>, and Mallows' Cp, or by cross-validation. Shrinkage methods such as the lasso and ridge regression improve model fitting by penalizing coefficient size. Dimension reduction techniques such as Principal Components Regression (PCR) and Partial Least Squares (PLS) provide alternatives for managing high-dimensional data through uncorrelated component transformation. We provided R code along with detailed descriptions for all analyses, establishing a systematic approach to developing linear models.

Authors

Institutions

Publication Details

Journal
Advanced Genetics
Published
2026-02-13
DOI
https://doi.org/10.1002/ggn2.202500024
Primary Topic
Data Analysis with R
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Best Practices for Developing Linear Models With Multiple Explanatory Variables

Baidu Li
Advanced Genetics
Data Analysis with R
article

Best Practices for Developing Linear Models With Multiple Explanatory Variables

Baidu Li
article en

Abstract

Linear models, including t-test, ANOVA, regression, ANCOVA, and generalized linear models, are foundational tools in statistical analysis. For large datasets, such as those involving tens of thousands of genes and millions of records, numerous advanced methods have been developed to improve both computational efficiency and reliability. Here, we focus on a more general scenario: a linear model with many explanatory variables (e.g., >10) and a moderate sample size (e.g., thousands of observations). This paper provides the best practices for model selection, emphasizing the importance of including two-way interaction and quadratic terms, which are frequently overlooked in textbooks and classic literature. When dealing with high-dimensional data, we recommend using random forest for initial variable screening, followed by subset selection methods such as stepwise regression. Model selection can be guided by criteria like AIC, BIC, adjusted R<sup>2</sup>, and Mallows' Cp, or by cross-validation. Shrinkage methods such as the lasso and ridge regression improve model fitting by penalizing coefficient size. Dimension reduction techniques such as Principal Components Regression (PCR) and Partial Least Squares (PLS) provide alternatives for managing high-dimensional data through uncorrelated component transformation. We provided R code along with detailed descriptions for all analyses, establishing a systematic approach to developing linear models.

Advanced GeneticsVol. 7(1)
University of Toronto (CA), University of Chinese Academy of Sciences (CN), Institute of Zoology (CN)
Openalex Percentile: Top 58%
Data Analysis with R
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Best Practices for Developing Linear Models With Multiple Explanatory Variables — Baidu Li · Advanced Genetics (2026) | TGRS Research Map | TGRS