[R] Hierarchical Regression

Ragnar Beer rbeer at uni-goettingen.de
Tue Apr 4 14:06:34 CEST 2000


Thanks a lot! I wouldn't have thought that it's so easy! It's just a 
different way of thinking than in SPSS. I wonder if there is 
something like a cookbook with all the stuff that one normally needs 
in social sciences (like calculating test-item characteristics, 
homogeneity, inter-rater correlations, all those anovas, ...)? 
Something like that would make it a LOT easier to introduce R in our 
department.

>Ragnar Beer <rbeer at uni-goettingen.de> writes:
>
>  > I want to know how much variance of pre/post-changes in relationship
>  > satisfaction can be explained by changes in iv1 and iv2 (dv ~ iv1 +
>  > iv2), by changes in iv3 and iv4 (dv ~ iv3 + iv4) and I want to know
>  > wether a model including all of the iv's explains a significant
>  > amount of variance over these two models (dv ~ iv1 + iv2 + iv3 + iv4).
>
>OK, that would be easiest done by
>
>model.0  <- lm(dv ~ 1)
>model.A  <- lm(dv ~ iv1 + iv2)
>model.B  <- lm(dv ~ iv3 + iv4)
>model.AB <- lm(dv ~ iv1 + iv2 + iv3 + iv4)
>
>anova(model.AB, model.A, model.0)
>anova(model.AB, model.B, model.0)




*****************************************
Ragnar Beer <rbeer at uni-goettingen.de>

Universitaet Goettingen
Institut fuer Psychologie
Klinische Psychologie
Gosslerstr. 14
37073 Goettingen
Germany

Phone:    +49/551/39-3566
Fax:      +49/551/39-3544
Homepage: http://www.gwdg.de/~rbeer
Training: http://goal.uni-psych.gwdg.de
*****************************************

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list