[R] How to find out the trend during a time period?

2010-10-28 Thread Lao Meng
Hi all: I have a dataset which contains two variables: Y and time y-c(228,189,232,198,252,315) time-2003:2008 How can I find out the trend(increase/decrease) of y along the time period? If I use: lm(y~time) The lm command treats time as natural number,but not date. So maybe lm isn't

Re: [R] How to find out the trend during a time period?

2010-10-28 Thread Uwe Ligges
On 28.10.2010 06:50, Lao Meng wrote: Hi all: I have a dataset which contains two variables: Y and time y-c(228,189,232,198,252,315) time-2003:2008 How can I find out the trend(increase/decrease) of y along the time period? If I use: lm(y~time) The lm command treats time as natural

Re: [R] How to find out the trend during a time period?

2010-10-28 Thread Gabor Grothendieck
2010/10/28 Uwe Ligges lig...@statistik.tu-dortmund.de: On 28.10.2010 06:50, Lao Meng wrote: Hi all: I have a dataset which contains two variables: Y and time y-c(228,189,232,198,252,315) time-2003:2008 How can I find out the trend(increase/decrease) of y along the time period? If I