seasdummy | R Documentation |
Create binary or trigonometric seasonal dummies.
seasdummy(n, m = NULL, y = NULL, type = c("bin", "trg"), full = c(FALSE, TRUE))
n |
number of observations to create. |
m |
seasonal periodicity. If |
y |
this is an optional time series input that can be used to get seasonal periodicity ( |
type |
type of seasonal dummies to create.
|
full |
If full is |
An array with seasonal dummies, where rows correspond observations and columns to dummy variables.
If the seasonal periodicity is fractional then the the type will be overriden to trigonometric and only two seasonal dummies with be produced. One cosine and one sine.
Nikolaos Kourentzes, nikolaos@kourentzes.com
seasdummy(24,12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.