dhuber | R Documentation |
Density for and random values from Huber's least favourable distribution, see Huber and Ronchetti (2009).
dhuber(x, k=0.862, mu=0, sigma=1) edhuber(x, k=0.862, mu=0, sigma=1) rhuber(n,k=0.862, mu=0, sigma=1)
x |
numeric vector. |
k |
numeric. Borderline value of central Gaussian part of the distribution. The default values refers to a 20% contamination neighborhood of the Gaussian distribution. |
mu |
numeric. distribution mean. |
sigma |
numeric. Distribution scale ( |
n |
integer. Number of random values to be generated. |
density.
density, and computes the contamination proportion
corresponding to k
.
random number generation.
dhuber
gives out a vector of density values.
edhuber
gives out a list with components val
(density
values) and eps
(contamination proportion).
rhuber
gives out a vector of random numbers generated by
Huber's least favourable distribution.
Christian Hennig chrish@stats.ucl.ac.uk http://www.homepages.ucl.ac.uk/~ucakche/
Huber, P. J. and Ronchetti, E. (2009) Robust Statistics (2nd ed.). Wiley, New York.
set.seed(123456) edhuber(1:5,k=1.5) rhuber(5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.