Skip to content
Prev 16992 / 398503 Next

Help with replicating an old SPSS GLM analysis

Dear Andrew,

It's difficult to know from your description what the nature of the model 
is that you're trying to fit, and (2) what the problem is -- that is, what 
is the difference between the SPSS and R output: coefficients, sums of squares?

But the following points might help:

(1) GLM in SPSS fits linear models, so it is closer to lm in R than to glm, 
which fits *generalized* linear models.

(2) Because the predictors in the SPSS GLM procedure follow the keyword 
WITH they are (I assume) covariates rather than factors. What is the nature 
of these variables?

(3) The asterisks in the R model specification do not have the same meaning 
as in SPSS. In R, the asterisks produce an interaction plus all effects 
marginal to the interaction. With covariates, the interactions will just be 
products.

(4) Despite these problems, I don't see why the coefficient estimates 
should differ: Because you leave the family unspecified in the call to R 
glm, you'll get a linear model; specifying the terms marginal to the 
interactions in the model is redundant but not wrong.

If you supply some more information, maybe I or someone else can figure out 
what's wrong.

John
At 09:18 PM 2/6/2002 -0500, Andrew Perrin wrote:

            
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._