How to Run a Regression in Google Sheets (with p-values)
LINEST gives regression coefficients in Google Sheets, but not a readable table with p-values, confidence intervals and an ANOVA table. Here's how to get the full output in a few clicks.
- Go to Extensions → SheetStats → Data Analysis → Regression.
- Input Y range: your outcome column. Input X range: one or more predictor columns side by side.
- Tick Labels if row 1 has headers, choose a confidence level, and click Run.
The new sheet shows Multiple R, R-squared, adjusted R-squared, standard error, the ANOVA table with F and Significance F, and for each coefficient the standard error, t-stat, p-value and confidence interval.
SheetStats for Google Sheets
Install freeFree to install. Data Analysis, Goal Seek, Solver and Monte Carlo in one add-on.
Questions
How many X variables can I use?
Several, placed in adjacent columns. You need more rows than coefficients.
Does it match Excel?
Yes, outputs are checked against Excel's ToolPak and R.