fsRadius | R Documentation |
Given some radius and some sample size the function computes
the corresponding finite-sample corrected radius. The user should use
function fsRadius
. The other functions are rarely called directly and
are mainly for internal use.
fsRadius(r, n, model = "norm", ...)
fsRadius.norm(r, n)
fsRadius.binom(r, n, prob, size, M = 10000, parallel = FALSE, ncores = NULL)
fsRadius.pois(r, n, lambda, M = 10000, parallel = FALSE, ncores = NULL)
r |
asymptotic radius (non-negative numeric) |
n |
sample size |
model |
character: short name of the model/distribution (default = |
prob |
prob parameter; see |
size |
size parameter (known!); see |
lambda |
lambda parameter; see |
M |
number of Monte-Carlo simulations; see details below. |
parallel |
logical: use package parallel for computations. |
ncores |
if |
... |
further arguments passed through; e.g., known parameters such as
|
The finite-sample correction is based on empirical results obtained via Monte-Carlo simulations.
Given some radius of a shrinking contamination neighborhood which leads to an asymptotically optimal robust estimator, the finite-sample empirical MSE based on contaminated samples is minimized for the class of optimally robust estimators and the corresponding finite-sample radius determined.
For some models ("norm"
) the computation is based on the saved results
of the Monte-Carlo simulations, whereas for other models ("binom"
,
"pois"
) the results are computed inside of the function based on
M
Monte-Carlo simulations.
As models we have implemented so far:
"norm"
: normal location (mean) and scale (sd)
"binom"
: probability of success (prob)
"pois"
: Poisson mean (lambda)
Finite-sample corrected radius.
Matthias Kohl Matthias.Kohl@stamats.de
Kohl, M. (2005) Numerical Contributions to the Asymptotic Theory of Robustness. Bayreuth: Dissertation.
Rieder, H. (1994) Robust Asymptotic Statistics. New York: Springer.
Rieder, H., Kohl, M. and Ruckdeschel, P. (2008) The Costs of not Knowing the Radius. Statistical Methods and Applications 17(1) 13-40. Extended version: http://r-kurs.de/RRlong.pdf
rmx
, rowRmx
## finite-sample radius is larger (more conservative)
fsRadius(r = 0.5, n = 3, model = "norm")
fsRadius(r = 0.5, n = 10, model = "norm")
fsRadius(r = 0.5, n = 25, model = "norm")
fsRadius(r = 0.5, n = 50, model = "norm")
fsRadius(r = 0.5, n = 100, model = "norm")
fsRadius(r = 0.5, n = 500, model = "norm")
fsRadius(r = 0.5, n = 1000, model = "norm")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.