Diff for "FAQ/ancreg" - CBU statistics Wiki
location: Diff for "FAQ/ancreg"
Differences between revisions 9 and 10
Revision 9 as of 2011-01-19 11:21:36
Size: 1556
Editor: PeterWatson
Comment:
Revision 10 as of 2011-01-19 11:29:55
Size: 1817
Editor: PeterWatson
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
You can run an ancova using regression. Just put the group and covariates in as independent variables. Your regression estimate and its standard error, for the group term, is the difference between the two group means adjusted for the covariates (which SPSS calls 'Estimated Marginal Means'). 'Marginal' is used because group means (e.g. for males and females) are computed pooling across the covariate (using the overall age mean). We remove age differences and end up with (an age pooled one-way layout of) group means which are akin to looking at the (gender) edges or ''margins'' of a higher order (age by group two-way) table. Chapter 7 of Boniface (1995) gives illustrations of computing ANCOVA adjusted means. You can run an ancova using regression. Just put the group and covariates in as independent variables. Your regression estimate and its standard error, for the group term, is the difference between the two group means adjusted for the covariates.
Line 5: Line 5:
You can get out these estimated (regression) means in SPSS using analyze:General linear Model:univariate:options. You can also get out estimated group regression means (adjusted for a covariate) in SPSS using analyze:General linear Model:univariate:options. SPSS calls the covariate adjusted means ''Estimated Marginal Means''). 'Marginal' is used because group means (e.g. for males and females) are computed pooling across the covariate (e.g. using the overall age mean). We remove age differences and end up with (an age pooled one-way layout of) group means which are akin to looking at the (gender) edges or ''margins'' of a higher order (age by group two-way) table as one is collapsing across rows (e.g. ages ) to get overall column (e.g. gender) means. Chapter 7 of Boniface (1995) gives illustrations of computing ANCOVA adjusted means.
Line 7: Line 7:
Put the group factor in the display means box (top right) and click the ''compare main effect'' box directly underneath and run the ancova as normal. To obtain these covariate adjusted means put the group factor in the display means box (top right) and click the ''compare main effect'' box directly underneath and run the ancova as normal.
Line 9: Line 9:
You also get the bonus of a 95% Confidence interval
for the adjusted difference in the group means.
You also get the bonus of a 95% Confidence interval for the adjusted difference in the group means.
Line 12: Line 11:
For '''three''' or more groups you have to enter them as '''dummy''' variables into the regression. For '''three''' or more groups you have to enter them as '''dummy''' variables into the regression. These need to be added manually if using the linear regression procedure.

Can I do an analysis of covariance using regression?

You can run an ancova using regression. Just put the group and covariates in as independent variables. Your regression estimate and its standard error, for the group term, is the difference between the two group means adjusted for the covariates.

You can also get out estimated group regression means (adjusted for a covariate) in SPSS using analyze:General linear Model:univariate:options. SPSS calls the covariate adjusted means Estimated Marginal Means). 'Marginal' is used because group means (e.g. for males and females) are computed pooling across the covariate (e.g. using the overall age mean). We remove age differences and end up with (an age pooled one-way layout of) group means which are akin to looking at the (gender) edges or margins of a higher order (age by group two-way) table as one is collapsing across rows (e.g. ages ) to get overall column (e.g. gender) means. Chapter 7 of Boniface (1995) gives illustrations of computing ANCOVA adjusted means.

To obtain these covariate adjusted means put the group factor in the display means box (top right) and click the compare main effect box directly underneath and run the ancova as normal.

You also get the bonus of a 95% Confidence interval for the adjusted difference in the group means.

For three or more groups you have to enter them as dummy variables into the regression. These need to be added manually if using the linear regression procedure.

The GLM Univariate method, on the other hand, will create and fit these dummy variables all for you so saving you the effort of doing a regression.

Reference

Boniface D. R. (1995). Experiment design and statistical methods for behavioural and social research. Chapman and Hall:London.

None: FAQ/ancreg (last edited 2017-09-19 15:00:00 by PeterWatson)