[R] LM() and time in R

Boris Steipe boris.steipe at utoronto.ca
Wed Apr 29 20:25:46 CEST 2015


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://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
Cheers

B.

On Apr 29, 2015, at 6:26 AM, Livia Maria Vestergaard <lvest09 at student.sdu.dk> wrote:

> 
> 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 but how ?
> 
> 
> 
> Hope that you can help me :)
> Livia
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list