View source: R/gen_air_projected_factors.r
gen_air_projected_factors | R Documentation |
Generates projected adjustment factors from the decomposition of the fractional airline model R routines
gen_air_projected_factors( this_est, this_decomp, this_xtype, this_x = NULL, this_log = TRUE, nfcasts = 104, return_series = "combined", return_xts = FALSE )
this_est |
A list object generated by the estimation procedure of the fractional airline model; the regression matrix should not be extended with forecasts. |
this_decomp |
A list object generated by the decomposition procedure of the fractional airline model; the |
this_xtype |
Character vector; Type of regressor used for including regression effects into components ( |
this_x |
Character vector; regression matrix. |
this_log |
Logical scalar; set to TRUE if the log transformation is used in the decomposition, FALSE otherwise. Default: TRUE |
nfcasts |
Integer scalar; number of projected adjustment factors; should match the |
return_series |
Character scalar; component returned by the routine. Default is "combined"; other possible choices are "seasonal" and "holiday". |
return_xts |
Logical scalar; return projected factors of type |
Array of projected adjustment factors from the fractional airline decomposition
ic_est <- rjd3highfreq::fractionalAirlineEstimation(ic_obs, periods=c(365.25/7), x=ic_default_matrix) ic_decomp <- rjd3highfreq::fractionalAirlineDecomposition(ic_est$model$linearized, 365.25/7, stde = TRUE, nfcasts = 104) ic_xtype <- c(rep('hol', 13), rep('ao', 40)) ic_proj_seasonal <- gen_air_projected_factors(ic_est, ic_decomp, this_xtype = ic_xtype, this_x = ic_holiday_matrix_fcst, this_log = FALSE, nfcasts = 104)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.