Displaying 1 result from an estimated 1 matches for "regression_problem".
2011 Jul 25
1
Trouble with line of best fit
...#No problems with the scatterplot
plot(x=range, y=graph, main=title, xlab=xlabel, ylab=ylabel, ylim=c(0,20))
abline(lm(range~graph))
I checked several websites, the abline(lm(/x-variable/~/y-variable/)) format
*should* work. But here is what happens:
http://r.789695.n4.nabble.com/file/n3693567/Regression_problem.png
The line is obviously far too steep. I can guarantee there are no outliers
in soloKills to throw it off:
> soloKills
[1] 9.040472 10.184595 11.201935 12.130823 13.583477 14.098845 14.489703
[8] 15.329752 15.562500 15.884757 16.239704 16.513289 16.383912 16.547543
[15] 16.823374 17.0513...