Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

R

Name: Anonymous 2011-11-08 14:37

Statistician needed.

I have the following R script:
http://pastebin.com/RzLL4tPQ

I want to focus on lines 20 and 21.
They draw an quadratic curve that fits the data in my plot nicely BUT the line stop at the last data point and I would like it to continue so it intersects with the upper line.

http://i.imgur.com/BQAOn.png

How do I achieve this?

Any help is appreciated.

Name: Anonymous 2011-11-08 15:20

Anyone know of a good R compiler? I can't get py2exe to work with matplotlib

Name: Anonymous 2011-11-08 15:27

use predict.lm

Name: Anonymous 2011-11-08 16:52

>>3
Please elaborate.

Name: Anonymous 2011-11-08 16:58

>>4

fit <- lm(your model)
x<-c(your desired range)
lines(x, predict.lm(fit, x))


or something similar, possible errors should point you in the right direction. It's been a while since I used R.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List