- All
predict_...()
functions now treat confidence bounds in the same way as response and predicted values. Upper and lower bounds are generated in full inpred_upper_col
andpred_lower_col
and then the existing bounds replaced based onreplace_obs
and presence of non-missing values.
- Use
obs_filter
in allpredict_...
functions to replacereplace_filter
, allowing not just filtering of when to replace observations, but also not fitting models when not being used to improve speed and reduce errors if insufficient data for certain types of modeling. - Add
expand_df()
function to allow easy generation of data frames with explicit missing values prior to passing topredict_...
functions.
- Add back extrapolation (flat) to
predict_simple()
. - Add
predict_aarr()
to allow the use of AARR for forecasting prevalence data. - Implement
replace_filter
in allpredict_...
functions that allows for select use of predicted data based on number of observations so that different models can be used for different data typologies. - Change defaults for
group_col
andsort_col
to"iso3"
and"year"
respectively, since they are by far the most common usage.
predict_..._avg_trend()
functions implemented to allow the fitting of models by group and application of that trend to base data.- Added in R-squared and root mean change error metrics to
model_error
. - Weighted averaging option added to
predict_average()
.
- Added in mean absolute scaled error, median absolute error, and confidence bounds assessment to error metrics.
- Refitted all functions to perform grouped modeling with the
group_models
argument, removing thegrouped_predict_...
function aliases. - Fix general functionality to support model building and testing.
- Add in
scale
andprobit
arguments topredict_...
functions to enable automatic scaling and transforming of response variables prior to model fitting.
- Added a
NEWS.md
file to track changes to the package. - Incorporated forecasting methods from the forecast package.