-
Added
Forecast()
S4 class. -
Added
is_forc()
function. -
Added
oos_realized_forc()
function. -
Added
oos_lag_forc()
function. -
Added
oos_vintage_forc()
function. -
Added
conditional_forc()
function. -
Added
historical_mean_forc()
function. -
Added
random_walk_forc()
function. -
Added
autoreg_forc()
function. -
Added
mse_weighted_forc()
function.
-
Changed the name of the
collect()
function toforc2df()
to avoid namespace conflict withdplyr::collect()
. -
Altered
mse()
andrmse()
methods so that forecast accuracy can be calculated if there are NAforecast
orrealized
values. -
Altered
autoreg_forc()
so that AR models are properly computed using one toar_lags
number of lags andh_ahead
forecasts are computed iteratively. -
Added
mae()
,mape()
, andR2()
methods for evaluating forecast accuracy. -
Altered
estimation_end
argument so that the origin of the first forecast is always greater than or equal to theestimation_end
time. -
Changed
historical_mean_forc()
tohistorical_average_forc()
and altered the function so that forecasts can be calculated using either the historical mean or historical median. Also altered the function so that forecasts can be calculated if there are NA values inrealized_vec
. -
Added
return_betas
argument to all applicable functions. If set to TRUE, returns a data frame of the coefficients used to create the forecast in each time period to the Global Environment. -
Created
str
method forForecast
objects. -
Added
states_weighted_forc()
function for computing state weighted forecasts. -
Changed name of
mse_weighted_forc()
toperformance_weighted_forc()
to reflect that errors may be either MSE or RMSE.
-
Added
mae()
andmape()
as options for theerrors
argument instates_weighted_forc()
andperformance_weighted_forc()
. -
Altered
forc2df()
so that if only one Forecast object is converted to a data.frame the forecast column is named "forecast".
-
Added
is_forc_general()
function for evaluating in-sample forecasts with any general model. -
Added
oos_realized_forc_general()
function for evaluating out-of-sample forecasts with any general model. -
Added
oos_vintage_forc_general()
function for evaluating out-of-sample forecasts conditioned on vintage forecasts with any general model. -
Added
conditional_forc_general()
function for computing out-of-sample conditional forecasts with any general model. -
Added a number of functions for subsetting and extracting information from
Forecast
objects:subset_forcs()
,subset_bytime()
,subset_identical()
. -
Added a number of functions for transforming
Forecast
objects:convert_bytime()
,transform_bytime()
,convert_byh()
,transform_byh()
.