preprocess {aggutils}R Documentation

Preprocessing function for agg methods

Description

This does the preprocessing steps that all the agg methods have in common.

Usage

preprocess(x, q = 0)

Arguments

x

A vector of forecasts

q

The quantile to use for replacing 0s and 1s (between 0 and 1)

Value

A vector of forecasts with 0s are replaced by the qth quantile and 100s are replaced by the (1 - q)th quantile.

Note

Assumes forecasts are in the range 0 to 100, inclusive.


[Package aggutils version 1.0.2 Index]