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 error messages  after reading the linear regression
command:

  Error in storage.mode(y) <- "double" :
  invalid to change the storage mode of a factor
In addition: Warning message:
In model.response(mf, "numeric") :
  using type="numeric" with a factor response will be ignored

Can someone explain me how to resolve this issue?

I appreciate your help in advance.

	[[alternative HTML version deleted]]

