Skip to content
Prev 44590 / 398526 Next

problem with abline for x.y

Dear Mike,

I believe that the following is the problem: For the regression of x on y, 
you have to move y to the left-hand-side of the equation to plot the line 
in {x, y}; so if the regression equation from the model x.y is x = a + b y, 
you need abline(-a/b, 1/b).

I hope that this helps,
  John
At 09:17 AM 2/20/2004 -0500, Michael Friendly wrote:
-----------------------------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
email: jfox at mcmaster.ca
phone: 905-525-9140x23604
web: www.socsci.mcmaster.ca/jfox