[R] problem to get coefficient from lm()
Jinsong Zhao
jinsong_zh at yahoo.com
Sat Feb 7 03:35:23 CET 2004
Dear John,
Thank you very much for your response. I made a mistake for my
careless. I used the same data in Excel, and regressed x on y, and got
a different equation, and then compared it to what I got in R.
Regards,
Jinsong
--- John Fox <jfox at mcmaster.ca> wrote:
> Dear Jinsong,
>
> Why do you say that the coefficients are wrong? The slope is 1 and
> the
> intercept 0 (within rounding) -- Isn't this what you intended?
>
> John
>
More information about the R-help
mailing list