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

R

Name: Anonymous 2011-09-28 14:59

Any people here that have experience with R?

Here's mah code:

http://pastebin.com/Ve6qQ6tE

Basically, it's a bunch of points on a graph with x,y and we take the assumption that they behave linearly (Linear regression). The code for the line is

gerade <- lm(i[-16]~u[-16]) # i hängt linear von u ab, ignoriert letzten Messwert, da er zu stark abweicht
abline(gerade) # Zeichnet Ausgleichsgerade

If the equation for the linear function is y=mx+q. What do I tell R so that it calculates both m and q for me?

Thanks.

Name: Anonymous 2011-09-28 15:13


sm <- summary(gerade)
sm$coef[...]

where ... will be position of the coefficient you want in summary table.

Name: Anonymous 2011-09-28 16:43

You better come up with a better reason to exclude observation 16 than that it deviates to far from a linear model.

Name: Anonymous 2011-09-28 16:49

The probability of X is 50%, either it happens or it doesn't!

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