huber: Wrapper for function from MASS

Description Usage Arguments Value

View source: R/adjustCommodityTree.R

Description

This function is designed to call MASS::huber with two exceptions: missing values are removed and, if MASS::huber results in an error, the non-robust mean/sd are returned.

Usage

1
huber(y, ...)

Arguments

y

The vector of data.

...

Additional arguments to pass to MASS::huber

Value

A numeric vector of length two with the estimated mean and standard deviation.


SWS-Methodology/faoswsStandardization documentation built on Feb. 7, 2022, 5:05 a.m.