.biweight_midvar {ComBatFamQC} | R 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: |
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)
[Package ComBatFamQC version 1.0.6 Index]