Message-ID: <C29AD083-E0DC-429D-8EEC-1D0A896D16DD@utoronto.ca>
Date: 2015-04-29T18:25:46Z
From: Boris Steipe
Subject: LM() and time in R
In-Reply-To: <2DFEDD9D3576FB419C7BF7511E983C964AE42526@ADM-EXMBX10D.adm.c.sdu.dk>
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.