dot-biweight_midvar: Biweight Midvariance Calculation

.biweight_midvarR Documentation

Biweight Midvariance Calculation

Description

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)

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.

Value

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)

ComBatFamQC documentation built on April 4, 2025, 12:24 a.m.