lp_variable | R Documentation |
Allows to generate a regressor correcting for the leap year or length-of-period effect.
lp_variable(
frequency,
start,
length,
s,
type = c("LeapYear", "LengthOfPeriod")
)
frequency |
Frequency of the series, number of periods per year (12,4,3,2..) |
start , length |
First date (array with the first year and the first period)
(for instance |
s |
time series used to get the dates for the trading days variables. If supplied the
parameters |
type |
the modelling of the leap year effect: as a contrast variable ( |
Time series (object of class "ts"
)
More information on calendar correction in JDemetra+ online documentation: https://jdemetra-new-documentation.netlify.app/a-calendar-correction
calendar_td
# Leap years occur in year 2000, 2004, 2008 and 2012
lp_variable(4, start = c(2000, 1), length = 4 * 13)
lper <- lp_variable(12, c(2000, 1), length = 10 * 12, type = "LengthOfPeriod")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.