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.
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.