constant: number by which the result is multiplied; the default achieves consisteny for normally distributed data.
finite.corr: logical indicating if the finite sample bias correction factor should be applied. Default to TRUE unless constant is specified.
na.rm: logical specifying if missing values (NA) should be removed from x before further computation. If false as by default, and if there are NAs, i.e., if(anyNA(x)), the result will be NA.
mu.too: logical indicating if the median(x) should also be returned for s_Sn().
...: potentially further arguments for s_Sn() passed to Sn().
Returns
Sn() returns a number, the Sn robust scale estimator, scaled to be consistent for σ2 and i.i.d. Gaussian observations, optionally bias corrected for finite samples.
s_Sn(x, mu.too=TRUE) returns a length-2 vector with location (μ) and scale; this is typically only useful for covOGK(*, sigmamu = s_Sn).
Details
............ FIXME ........
References
Rousseeuw, P.J. and Croux, C. (1993) Alternatives to the Median Absolute Deviation, Journal of the American Statistical Association 88 , 1273--1283.
See Also
mad for the most robust but much less efficient scale estimator; Qn for a similar more efficient but slower alternative; scaleTau2.