Compute a robust estimate of midvariance using the biweight method, which reduces the influence of outliers by applying a weighting function to the data based on their deviation from a central value.
Usage
.biweight_midvar(data, center = NULL, norm.unbiased = TRUE)
Value
A numeric value representing the robust biweight midvariance estimate.
Arguments
data
A numeric vector containing the data points for which the biweight midvariance is to be calculated.
center
An optional parameter specifying the central location of the data. If not provided, the function defaults to using the median of the data.
norm.unbiased
A logical parameter (default: TRUE) indicating whether to use a normalization constant for unbiased estimation. When TRUE, the constant is adjusted to 9 divided by the quantile function of 0.75 from the standard normal distribution.