Re: [R] LM() and time in R

2015-04-30 Thread Livia Maria Vestergaard
te...@utoronto.ca] Sendt: 29. april 2015 20:25 Til: Livia Maria Vestergaard Cc: r-help mailing list Emne: Re: [R] LM() and time in R Have a look at the help page for the function ts() (type ?ts at the R prompt). Other than that, you haven't provided nearly enough information for us to diagnos

Re: [R] LM() and time in R

2015-04-30 Thread Jim Lemon
; to improve the model? > > Cheers > Livia :) > > > Fra: Boris Steipe [boris.ste...@utoronto.ca] > Sendt: 29. april 2015 20:25 > Til: Livia Maria Vestergaard > Cc: r-help mailing list > Emne: Re: [R] LM() and time in R > >

Re: [R] LM() and time in R

2015-04-29 Thread Jim Lemon
Hi Livia, >From your description, it sounds like the "time" variable is actually a vector of date strings like "30/04/2015". These will usually be input as "factors" in R, meaning that you probably had a very large number of categorical values instead of numeric. To find out, do this: is.factor(ti

Re: [R] LM() and time in R

2015-04-29 Thread Boris Steipe
Have a look at the help page for the function ts() (type ?ts at the R prompt). Other than that, you haven't provided nearly enough information for us to diagnose your issue. Please see here for some hints on how to ask questions productively: http://adv-r.had.co.nz/Reproducibility.html http://

[R] LM() and time in R

2015-04-29 Thread Livia Maria Vestergaard
Hello, I need some help with a project that I’m working one. Im trying to make a l regression model (lm) in r with time as independant variable and gas prices as the depended. But It seems like everything im trying to run it, R freeze, I think that I need to tell R somehow that my time is time