I just wanted to know where I can see my sample size in the output of a linear regression. It must be in the ANOVA-Table in the column of the df. Is my sample size 487?

Regression 2
Residual Error 485
Total 487

  • $\begingroup$ Why not compare that output with what you know about your data? $\endgroup$ – whuber Jun 15 '16 at 14:01
  • $\begingroup$ I have missing values. My sample size is 500 but not everyone has answered my question... $\endgroup$ – Jannis Jun 15 '16 at 20:02

The Total row of the ANOVA table df column is the size of the sample used (+1 for the constant term, if you have one). You can also include something like
in the Regression syntax (or check Descriptives in the Statistics subdialog) to see the sample size and other statistics.

  • $\begingroup$ What do you mean by : "+1 for the constant term, if you have one" In my Anova-Table is only in the column df Regression:2, Residual Error: 485, Total:487. So my sample size is 487, isn't it? $\endgroup$ – Jannis Jun 21 '16 at 16:47
  • $\begingroup$ The regression sum of squares will have one fewer df than the number of coefficients to account for the constant term. If you suppress the constant, you can see the effect. But the descriptives output will show you the number of cases actually used by the regression. $\endgroup$ – JKP Jun 22 '16 at 19:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.