Description Usage Arguments Value See Also Examples
Returns a monthly or quarterly dummy (a time series with only 0s and 1s).
1 2 |
start |
An |
end |
An |
frequency |
An |
year |
An |
month |
An |
quarter |
An |
date |
a |
from |
An |
to |
The ending period of a sequence of perids for which the dummy must be set to one. Periods must be represented as integer vectors, as described for |
A monthly or a quarterly ts
object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #1 from a specific date to another specific date
BETS.dummy(start = c(2000,1),end = c(2012,5),frequency = 12,from = c(2005,1),to = c(2006,12))
#Other options that may be helpful:
#over a month equal to 1
BETS.dummy(start = c(2000,1), end = c(2012,5), frequency = 12, month = c(5,12))
#Months equal to 1 only for some year
BETS.dummy(start = c(2000,1), end = c(2012,5), frequency = 12, month = 5, year = 2010)
BETS.dummy(start = c(2000,1), end = c(2012,5), frequency = 12, month = 8, year = 2002)
#Months equal to 1 only for some years
BETS.dummy(start = c(2000,1), end = c(2012,5), frequency = 12, month = 5, year = 2005:2007)
BETS.dummy(start = c(2000,1), end = c(2012,5), frequency = 12, month = 3, year = c(2005,2007))
BETS.dummy(start = c(2000,1), end = c(2012,5), frequency = 12, month = 5:6, year = c(2005,2007))
#specific dates
BETS.dummy(start = c(2000,1), end = c(2012,5), frequency = 12, date = list(c(2010,1)))
BETS.dummy(start = c(2000,1), end = c(2012,5),
freq = 12, date = list(c(2010,9), c(2011,1), c(2000,1)) )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.