[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

Re: [R] linear regression with dates

2010-12-27 Thread Entropi ntrp
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 Thanks, On Mon, Dec 27, 2010 at 3:04 PM, Entropi ntrp wrote: > Hi, > I am trying to do si

[R] linear regression for grouped data

2010-12-28 Thread Entropi ntrp
Hi, I have been examining large data and need to do simple linear regression with the data which is grouped based on the values of a particular attribute. For instance, consider three columns : ID, x, y, and I need to regress x on y for each distinct value of ID. Specifically, for the set of data

[R] goodness of fit test for 2-dimensional data in R

2011-03-08 Thread Entropi ntrp
Hi, I have a certain number of paired data that show errors at the x-axis and y-axis for the location of a target and is below. My aim is to fit a distribution to the uncertain location of the target via certain tests such as Chi-square test (if possible). I was wondering how it can be done in R. T