weight_outlier: Weighting method: Down weighting outliers

View source: R/weight_outlier.R

weight_outlierR Documentation

Weighting method: Down weighting outliers

Description

This method down-weights outliers.

Usage

weight_outlier(expert_judgements)

Arguments

expert_judgements

A dataframe in the form of data_ratings

Details

This function is used by LinearWAgg to calculate weights for the aggregation type "OutWAgg". Outliers are given less weight by using the squared difference between the median of an individual's best estimates across all claims and their best estimate for the claim being assessed: \loadmathjax \mjdeqnd_i,c = \left(median{B_i,c__i=1,...,N} - B_i,c\right)^2ascii

Weights are given by 1 minus the proportion of the individual's squared difference relative to the maximum squared difference for the claim across all individuals:

\mjdeqn

w\_out_i = 1 - \fracd_i,c\max(d_c))ascii

Value

A tibble in the form of the input expert_judgements argument with additional columns supplying the calculated weight for each row's observation.


aggreCAT documentation built on June 8, 2025, 11:06 a.m.