View source: R/biweight_midvariance.R
biweight_midvariance | R Documentation |
This function calculates the biweight midvariance of a numeric vector, which is a robust measure of scale that can be used to estimate the variability of the data while being resistant to the influence of outliers.
biweight_midvariance(x, drop.na = FALSE)
x |
A numeric vector. |
drop.na |
A logical value indicating whether to remove missing values ( |
For scale estimators, the standard deviation (or variance) is the optimal estimator for Gaussian data. However, it is not resistant and it does not have robustness of efficiency. In robust statistics, the median absolute deviation (MAD) is a resistant estimate, but it has only modest robustness of efficiency, while the biweight midvariance estimator is both resistant and robust of efficiency.
The biweight midvariance of the input vector.
Christian L. Goueguel
Wilcox, R., (1997). Introduction to Robust Estimation and Hypothesis Testing. Academic Press
vec <- c(1, 2, 3, 4, 4, 2)
stats::var(vec)
biweight_midvariance(vec)
vec <- c(1, 2, 3, 4, 4, 100)
stats::var(vec)
biweight_midvariance(vec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.