[R] dynlm question

2011-06-20 Thread Dave Evens
Dear All, I'm trying to use dynlm to fit a time series. I have 3 seasonal terms. Here is an example of the problem. This is my time variable, hourly data: timeSeries <- seq(as.POSIXct("2011-01-01 00:00:00"), as.POSIXct("2011-12-31 23:00:00"), by="hour") My response is: y <- rnorm(length(

Re: [R] dynlm question: How to predefine formula for call to dynlm(formula) call

2009-04-19 Thread Achim Zeileis
On Sat, 18 Apr 2009, Ron Burns wrote: I want to set up a model with a formula and then run dynlm(formula) because I ultimately want to loop over a set of formulas (see end of post) R> form <- gas~price R> dynlm(form) Time series regression with "ts" data: Start = 1959(1), End = 1990(4) Work

[R] dynlm question: How to predefine formula for call to dynlm(formula) call

2009-04-18 Thread Ron Burns
I want to set up a model with a formula and then run dynlm(formula) because I ultimately want to loop over a set of formulas (see end of post) R> form <- gas~price R> dynlm(form) Time series regression with "ts" data: Start = 1959(1), End = 1990(4) Works OK without a Lag term R> dynlm(gas ~