View source: R/Location_Scale.R
MlocHUB | R Documentation |
Mloc_HUB computes Huber's M-estimate of location, i.e.,
MlocHUB(y, c = 1.345, max_iters = 1000, tol_err = 1e-05)
tol_err |
: scalar threshold value for stopping iteration. Default 1e-5 |
y: |
real valued data vector of size N x 1 |
c: |
tuning constant c>=0 |
mu_hat = arg_{min_mu} ∑{i} rho_{HUB}(y_{i} - μ)
mu_hat: Huber's M-estimate of location
File location : Location_Scale.R
MlocHUB(rnorm(4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.