Learn R Programming

aggutils (version 1.0.2)

preprocess: Preprocessing function for agg methods

Description

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

Usage

preprocess(x, q = 0)

Value

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

Arguments

x

A vector of forecasts

q

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