Mloc: M-estimate of location

View source: R/Location_Scale.R

MlocR Documentation

M-estimate of location

Description

Mloc computes the M-estimates of location using an auxiliary scale estimate. It uses the iterative reweighted least squares (IRWLS) algorithm

Usage

Mloc(y, lossfun)

Arguments

y

: (numeric) data vector of size N

lossfun

: (string) either 'huber' or 'tukey' to identify the desired loss function

Value

mu_hat: M-estimate of location

Note

File location : Location_Scale.R

Examples

Mloc(rnorm(5), 'huber')
Mloc(rnorm(5), 'tukey')

Mufabo/Rrobustsp documentation built on June 11, 2022, 10:41 p.m.