SPSS macros to compare any two fitted values from a regression model |
| |
Authors: | Bruce Weaver Sacha Dubois |
| |
Affiliation: | 1. Human Sciences Division, Northern Ontario School of Medicine, Thunder Bay, ON, Canada, P7B 5E1 2. Centre for Research on Safe Driving, Lakehead University, Thunder Bay, ON, Canada, P7B 5E1 3. St. Joseph’s Care Group, 580 N. Algoma St., Thunder Bay, ON, Canada, P7B 5G4
|
| |
Abstract: | In regression models with first-order terms only, the coefficient for a given variable is typically interpreted as the change in the fitted value of Y for a one-unit increase in that variable, with all other variables held constant. Therefore, each regression coefficient represents the difference between two fitted values of Y. But the coefficients represent only a fraction of the possible fitted value comparisons that might be of interest to researchers. For many fitted value comparisons that are not captured by any of the regression coefficients, common statistical software packages do not provide the standard errors needed to compute confidence intervals or carry out statistical tests—particularly in more complex models that include interactions, polynomial terms, or regression splines. We describe two SPSS macros that implement a matrix algebra method for comparing any two fitted values from a regression model. The !OLScomp and !MLEcomp macros are for use with models fitted via ordinary least squares and maximum likelihood estimation, respectively. The output from the macros includes the standard error of the difference between the two fitted values, a 95% confidence interval for the difference, and a corresponding statistical test with its p-value. |
| |
Keywords: | |
本文献已被 SpringerLink 等数据库收录! |
|