hubers.Rd
Finds the Huber M-estimator for location with scale specified, scale with location specified, or both if neither is specified.
hubers(y, k = 1.5, mu, s, initmu = median(y), tol = 1e-06)
list of location and scale estimates
location estimate
scale estimate
Huber, P. J. (1981) Robust Statistics. Wiley.
Venables, W. N. and Ripley, B. D. (2002) Modern Applied Statistics with S. Fourth edition. Springer.
hubers(chem)
#> $mu
#> [1] 3.205498
#>
#> $s
#> [1] 0.673652
#>
hubers(chem, mu=3.68)
#> $mu
#> [1] 3.68
#>
#> $s
#> [1] 0.9409628
#>