See the references for more.
Qn(x, constant = 2.21914, finite.corr = missing(constant))s_Qn(x, mu.too = FALSE, ...)
TRUE
unless
constant
is specified.median(x)
should
also be returned for s_Qn()
.s_Qn()
passed to
Qn()
.Qn()
returns a number, the $Q_n$ robust scale
estimator, scaled to be consistent for $\sigma^2$ and
i.i.d. Gaussian observatsions, optionally bias corrected for finite
samples. s_Qn(x, mu.too=TRUE)
returns a length-2 vector with location
($\mu$) and scale; this is typically only useful for
covOGK(*, sigmamu = s_Qn)
.
constant
:
Christophe Croux (2010)
Private e-mail, Fri Jul 16, w/ Subject
Re: Slight inaccuracy of Qn implementation .......mad
for the Sn
for a similar faster but less
efficient alternative. Finally, scaleTau2
which some
consider set.seed(153)
x <- sort(c(rnorm(80), rt(20, df = 1)))
s_Qn(x, mu.too = TRUE)
Qn(x, finite.corr = FALSE)
Run the code above in your browser using DataLab