# NOT RUN {
# Illustration on the Three Gorges Dam Example in Palley & Satop<U+00E4><U+00E4> (2021):
# Judges' estimates:
E = c(50, 134, 206, 290, 326, 374)
# Judges' predictions of others
P = c(26, 92, 116, 218, 218, 206)
# Weights used in the knowledge-weighted estimate:
alpha = knowledge_weights(E,P)
# Knowledge-weighted estimate is 329.3266
t(alpha) %*% E
# Alternatively, the knowledge-weighted estimate can be calculated using
# the knowledge_weighted_estimate() function. This returns 329.305, which
# is slightly different from the above result. The difference arises because
# knowledge_weighted_estimate() improves stability by standardizing the
# judges' responses before aggregating them.
knowledge_weighted_estimate(E,P)
# }
Run the code above in your browser using DataLab