[R] regressions (simple question)
mhart at terrigal.net.au
Tue Sep 21 06:46:35 CEST 1999
I have a list of measurements taken at 1 second samples in a vector (y).
All I want to do is generate a regression through them, and obtain the
residuals in another vector. I am currently using the 'line' function from
the eda package to do this (ie :
z <- line(time,y)
rsd <- residuals(z)
but this method does not handle NA values in the data. I would like to try
to use the lm functions but cannot figure out how to do this simple
regression with it (how do I set up the model parameter etc).
Also can anyone let me know how the ts package handles NA values.
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help