Dear All R users:


I am teaching a statistical class. Can someone help me to write an R code to
compare two regression lines.
More specific:
(1) Test the equality of slopes.

and 

(2) Test the equality of Y-intercepts (elevations). 


Please use this example of data.







Data for line 1:

============

 

X1<-c(25, 50, 100, 200, 400)

Y1<-c(77.7, 78, 64.3, 59.7, 51.2)

 

 

Data for line 2:

============

 

X2<-c(25, 50, 100, 200)

Y2<-c(77.7, 52.3, 23.7, 6)

 

 

With many thanks

Ali

 


        [[alternative HTML version deleted]]

_______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-sig-teaching

Reply via email to