Learn R Programming

onlineforecast (version 0.9.3)

score_fit: Calculates scores for a forecast model fit.

Description

Calculate the score for each horizon for a forecast model fit.

Usage

score_fit(fit, scoreperiod = NA, usecomplete = TRUE, scorefun = rmse)

Arguments

fit

A model fit

scoreperiod

as an index (logical or integer) defining which points to inlude in the score calculation. If NA, the scoreperiod from the fit$model object is used.

usecomplete

Only use points where

scorefun

The score function applied, per default rmse.

Value

A list with: - scoreval is the score value - scoreperiod is the score period used (can be different that the one in arguments fit or scoreperiod) - scorename is the name of the score function applied

Details

For evaluation of the score on each horizon, as specified in the fit. Use it for a consistent evaluation.

See Also

rmse and score which are used in this function.