dot-biweight_midvar function

Biweight Midvariance Calculation

Biweight Midvariance Calculation

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.

.biweight_midvar(data, center = NULL, norm.unbiased = TRUE)

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.

Returns

A numeric value representing the robust biweight midvariance estimate.

Examples

data <- c(1, 2, 3, 4, 100) biweight_var <- .biweight_midvar(data) print(biweight_var)