View source: R/Location_Scale.R
Mloc | R Documentation |
Mloc computes the M-estimates of location using an auxiliary scale estimate. It uses the iterative reweighted least squares (IRWLS) algorithm
Mloc(y, lossfun)
y |
: (numeric) data vector of size N |
lossfun |
: (string) either 'huber' or 'tukey' to identify the desired loss function |
mu_hat: M-estimate of location
File location : Location_Scale.R
Mloc(rnorm(5), 'huber') Mloc(rnorm(5), 'tukey')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.