get_eff_weights {COINr} | R Documentation |
Get effective weights
Description
Calculates the "effective weight" of each indicator and aggregate at the index level. The effective weight is calculated
as the final weight of each component in the index, and this is due to not just to its own weight, but also to the weights of
each aggregation that it is involved in, plus the number of indicators/aggregates in each group. The effective weight
is one way of understanding the final contribution of each indicator to the index. See also vignette("weights")
.
Usage
get_eff_weights(coin, out2 = "df")
Arguments
coin |
A coin class object |
out2 |
Either |
Details
This function replaces the now-defunct effectiveWeight()
from COINr < v1.0.
Value
Either an iMeta data frame with effective weights as an added column, or an updated coin with effective
weights added to .$Meta$Ind
.
Examples
# build example coin
coin <- build_example_coin(up_to = "new_coin", quietly = TRUE)
# get effective weights as data frame
w_eff <- get_eff_weights(coin, out2 = "df")
head(w_eff)
[Package COINr version 1.1.14 Index]