Learn R Programming

utsf (version 1.1.0)

evaluation: Specify the way in which the estimation of forecast accuracy is done

Description

Specify the way in which the estimation of forecast accuracy is done

Usage

evaluation(type = "normal", size = NULL, prop = NULL)

Value

An S3 object of class evaluation with the chosen evaluation.

Arguments

type

A string. Possible values are "normal" (the default) and "minimum". See the vignette for an explanation of both ways of evaluating forecast accuracy.

size

An integer. It is the size of the test set (how many of the last observations of the time series are used as test set). It can only be used when the type parameter is "normal".

prop

A numeric value in the range (0, 1). It is the proportion of the time series used as test set. It can only be used when the type parameter is "normal".

Examples

Run this code
evaluation("normal", size = 10)

Run the code above in your browser using DataLab