Re: [R] Comparing two regression lines

2008-06-04 Thread John Fox
uares for error is off. The net result is a test statistic that is slightly off (and has incorrect df). I hope this helps, John -- John Fox, Professor Department of Sociology McMaster University Hamilton, Ontario, Canada web: socserv.mcmaster.ca/jfox > -Original M

[R] Comparing two regression lines

2008-06-04 Thread Christoph Scherber
Dear R users, Suppose I have two different response variables y1, y2 that I regress separately on the same explanatory variable, x; sample sizes are n1=n2. Is it legitimate to compare the regression slopes (equal variances assumed) by using lm(y~x*FACTOR), where FACTOR gets "y1" if y1 is th