.biweight_midvar | R Documentation |
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)
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: |
A numeric value representing the robust biweight midvariance estimate.
data <- c(1, 2, 3, 4, 100)
biweight_var <- .biweight_midvar(data)
print(biweight_var)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.