Re: [R] Problem with regression line

2018-04-18 Thread CHATTON Anne via R-help
2018 16:08 À : CHATTON Anne; r-help@R-project.org Objet : Re: [R] Problem with regression line Hi, Anne, assign Age and Bloodpressure in the correct order to the axes in your call to plot as in: plot(y = Age, x = BloodPressure) abline(SimpleLinearReg1) Hth -- G

Re: [R] Problem with regression line

2018-04-18 Thread David L Carlson
versity College Station, TX 77843-4352 -Original Message- From: R-help On Behalf Of Eik Vettorazzi Sent: Wednesday, April 18, 2018 9:25 AM To: CHATTON Anne ; r-help@R-project.org Subject: Re: [R] Problem with regression line Hi Anne, I would suggest to change the linear model to lm(BloodPr

Re: [R] Problem with regression line

2018-04-18 Thread Eik Vettorazzi
Hi Anne, I would suggest to change the linear model to lm(BloodPressure~Age), as this model makes more sense in biological means (you would assume that age influences pressure, not vice versa) and also obeys the statistical assumption of weak exogeneity, that age can be measured without error, at l

Re: [R] Problem with regression line

2018-04-18 Thread Gerrit Eichner
Hi, Anne, assign Age and Bloodpressure in the correct order to the axes in your call to plot as in: plot(y = Age, x = BloodPressure) abline(SimpleLinearReg1) Hth -- Gerrit - Dr. Gerrit Eichner Mathematica

[R] Problem with regression line

2018-04-18 Thread CHATTON Anne via R-help
Hello, I am trying to graph a regression line using the followings: Age <- c(39, 47, 45, 47, 65, 46, 67, 42, 67, 56, 64, 56, 59, 34, 42, 48, 45, 17, 20, 19, 36, 50, 39, 21, 44, 53, 63, 29, 25, 69) BloodPressure <- c(144, 220, 138, 145, 162, 142, 170, 124, 158, 154, 162, 150, 140, 110, 128, 130, 1