Re: [R] linear regression with dates

2010-12-27 Thread David Winsemius
On Dec 27, 2010, at 8:56 PM, Entropi ntrp wrote: Thanks for the response. I proivded the necessary details below, and also have a general question for how to deal with dates in R. Is there a way to make R read dates as numbers? Here is the details of the R code: egfr <- read.csv(file.ch

Re: [R] linear regression with dates

2010-12-27 Thread Entropi ntrp
Thanks for the response. I proivded the necessary details below, and also have a general question for how to deal with dates in R. Is there a way to make R read dates as numbers? Here is the details of the R code: egfr <- read.csv(file.choose(), header=TRUE, sep=",") #egfr is a matrix read fr

Re: [R] linear regression with dates

2010-12-27 Thread Daniel Nordlund
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > On Behalf Of Entropi ntrp > Sent: Monday, December 27, 2010 3:05 PM > To: r-help@r-project.org > Subject: [R] linear regression with dates > > Hi, > I am trying to

[R] linear regression with dates

2010-12-27 Thread Entropi ntrp
Hi, I am trying to do simple linear regression using dates in R but receiving error messages. With the data shown below, I would like to regress x on y. x y 11/12/1999 56.8 11/29/1999 17.9 01/04/2000 27.4 1/14/2000 96.8 1/31/2000 49.5 R gives the following erro