For use to calculate RMChE, this calculates the squared change error between observed and predicted columns.
Arguments
- response
Observations to test.
- pred
Predictions to test.
- test_period
Length of period to test for RMChE. If
NULL, beginning and end points of each group ingroup_colare compared. Otherwise,test_periodmust be set to an integernand for each group, comparisons are made between the end point andnperiods prior.- test_period_flex
Logical value indicating if
test_periodis less than the full length of the series, should change error still be calculated for that point. Defaults toFALSE.
