hubers | R Documentation |
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)
y |
vector y of data values |
k |
Winsorizes at |
mu |
specified location |
s |
specified scale |
initmu |
initial value of |
tol |
convergence tolerance |
list of location and scale estimates
mu |
location estimate |
s |
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.
huber
hubers(chem)
hubers(chem, mu=3.68)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.