Learn R Programming

aggutils (version 1.0.2)

trim: Trimmed mean

Description

Trim the top and bottom (p*100)% of forecasts

Usage

trim(x, p = 0.1)

Value

(numeric) The trimmed mean of the vector

Arguments

x

Vector of forecasts in 0 to 100 range (%)

p

The proportion of forecasts to trim from each end (between 0 and 1)