Linear regression in jamovi

Predict a continuous outcome from one or more predictors, read the model fit and coefficients, and check the assumptions behind them.

  • Intermediate
  • 4 min read
  • Updated

In jamoviAnalysesRegressionLinear Regression

Short answer

Use Analyses → Regression → Linear Regression. Put the outcome in Dependent Variable, continuous predictors in Covariates and categorical predictors in Factors. Under Model Fit tick R², Adjusted R² and the F test; under Model Coefficients tick Confidence interval and Standardized estimate; under Assumption Checks tick the residual plots, Q-Q plot and collinearity statistics. In the practice data, hours, sleep and anxiety together explain 0.487 of the variance in exam scores (R²), F(3, 56) = 17.71, p < .001.

When to use it

Linear regression models a continuous outcome as a straight-line function of one or more predictors. Use it to:

  • predict an outcome (what exam score do we expect after 10 hours of study?), or
  • estimate the association of one predictor with the outcome while holding others constant.

For a binary outcome (pass/fail), use Logistic Regression in the same menu. If you only want the strength of a two-variable relationship, a correlation is simpler.

Before you start

study-habits.csvSynthetic · 60 rows

60 simulated students: study method, hours studied, sleep, test anxiety and exam score. Columns: participant, method, hours_studied, sleep_hours, test_anxiety, exam_score.

CSV

The question: how well do hours studied, sleep and test anxiety predict exam score, and which of them matter once the others are taken into account?

Step-by-step in jamovi

  1. Go to AnalysesRegressionLinear Regression.
  2. Drag exam_score into Dependent Variable.
  3. Drag hours_studied, sleep_hours and test_anxiety into Covariates. (A categorical predictor such as method would go into Factors; jamovi creates the dummy coding for you, and Reference Levels controls the comparison group.)
  4. Open Model Fit: tick R, R², Adjusted R² and, under Overall Model Test, F test.
  5. Open Model Coefficients: tick Confidence interval and Standardized estimate.
  6. Open Assumption Checks: tick Autocorrelation test, Collinearity statistics, Normality test, Q-Q plot of residuals and Residual plots.
  7. Optional: use Model Builder to add predictors in blocks (hierarchical regression) and compare the models.

Reading the output

Model fit

R R² Adjusted R² F df1 df2 p
0.698 0.487 0.459 17.71 3 56 < .001

The F test asks whether the model predicts better than the mean alone — it clearly does. R² = 0.487 means the three predictors together account for about 49% of the variance in exam scores. Adjusted R² penalises extra predictors and is the fairer figure for comparing models of different sizes.

Model coefficients

Reference values computed from study-habits.csv by ordinary least squares.
Predictor Estimate (b) SE 95% CI t p Stand. estimate (β)
Intercept 41.89 11.55 18.77 to 65.02 3.63 < .001 —
hours_studied 2.41 0.400 1.62 to 3.21 6.08 < .001 0.607
sleep_hours 2.30 1.32 -0.330 to 4.94 1.75 .086 0.170
test_anxiety -0.240 0.190 -0.620 to 0.140 -1.27 .210 -0.125
  • b (unstandardized): holding sleep and anxiety constant, each extra hour of study is associated with 2.41 more exam points.
  • Sleep and anxiety: both point in the expected direction, but their confidence intervals include zero, so once hours studied is in the model the data cannot tell whether they add anything. Notice that each was significantly correlated with exam score on its own in the correlation tutorial — regression asks a different question (the unique contribution of each predictor).
  • β (standardized): puts predictors on a common scale (SD units). Hours studied (β = 0.607) is the strongest predictor.
  • Intercept: the predicted score when every predictor is zero — not meaningful here, because nobody sleeps zero hours.

Checking the assumptions

  • Linearity and equal spread (homoscedasticity): the residuals vs. fitted plot should show a shapeless cloud with no curve or funnel.
  • Normal residuals: the Q-Q plot points should lie close to the line. Mild deviations matter little with 60 cases.
  • Independent errors: the Durbin-Watson statistic should be near 2; here it is 2.18. It is most relevant when the order of cases means something, such as time.
  • Collinearity: VIF values well below 5 (and tolerance above 0.2) indicate predictors are not too strongly related to each other. The predictors here are only weakly correlated.
  • Influential cases: tick Cook’s distance (listed with the assumption checks or data summary options, depending on your version) and look for values far larger than the rest.

Simple regression first?

With only hours_studied as a covariate you get the line drawn on our home page: predicted score = 49.48 + 2.65 × hours, R² = 0.442. Adding sleep and anxiety raises R² to 0.487.

Reporting example (APA style)

A multiple linear regression was used to predict exam score from hours studied, sleep hours and test anxiety. The model explained a significant proportion of variance, R² = 0.487, adjusted R² = 0.459, F(3, 56) = 17.71, p < .001. Hours studied was a significant predictor, b = 2.41, 95% CI [1.62, 3.21], β = 0.607, p < .001, whereas sleep hours (p = .086) and test anxiety (p = .210) were not.

Common mistakes

  • Putting a categorical variable in Covariates. Group codes like 1/2/3 must go in Factors, otherwise jamovi treats them as numbers on a scale.
  • Reading non-significant as “no effect”. Check the confidence interval; it often includes meaningful values.
  • Comparing raw b values across predictors measured in different units. Use standardized estimates for that.
  • Adding many predictors to a small sample. A common rule of thumb is at least 10–20 cases per predictor.
  • Interpreting coefficients causally from observational data.

Troubleshooting

  • A predictor is missing from the coefficients table: check it is in Covariates or Factors and that it varies (a constant cannot predict anything).
  • Very large VIFs: two predictors measure nearly the same thing. Drop or combine one.
  • N in the model is lower than the data set: cases with any missing value on the outcome or a predictor are excluded.

Sources and further reading

Enter full results · Esc close