[R] factors in dynlm?

Achim Zeileis Achim.Zeileis at wu-wien.ac.at
Sun Oct 19 03:35:58 CEST 2008


On Sun, 19 Oct 2008, Werner Wernersen wrote:

> Hello,
>
> how can one use factors in dynlm?
> I would like to add month dummies to the equation. Or is creating 12 
> vectors the way to do it?

You can use y ~ season(y) + ... in the formula. There is a small example 
on
   help("dynlm", package = "dynlm")
and a more elaborate one on
   help("M1Germany", package = "dynlm")

Apparently, this is not documented in the details section of ?dynlm, will 
fix.
Z

> Thanks a lot,
>  Werner
>
>
> ____________________________________________
> einen herausragenden Schutz gegen Massenmails.
> http://mail.yahoo.com
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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