View source: R/within_month_regressors.r
within_month_regressors | R Documentation |
Generates a regression matrix of within month effects from Cleveland and Scott to be included in weekly modeling routines
within_month_regressors( this_year, this_month, this_day, l = 30, return_xts = TRUE )
this_year |
Numeric vector; Year of each observation. |
this_month |
Numeric vector; Month for each observation. |
this_day |
Numeric vector; Day of the month for each observation. |
l |
Numeric scalar; Number of sin-cos terms to generate, with the total number of regressors being |
return_xts |
Logical scalar; return matrix as an |
Generate matrix of within month effects regressors, with column names that describe the individual regressors
ic_wm_matrix_1992 <- within_month_regressors(ic_year, ic_month, ic_day, return_xts = FALSE) cc_wm_matrix_xts <- within_month_regressors(cc_year_xts, cc_month_xts, cc_day_xts, return_xts = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.