Description Usage Arguments Details Value See Also Examples
This is a short cut function which takes a new set of indicator weights, and recalculates the COIN results based on these weights. It returns a summary of rankings and the correlations between indicators and index.
1 2 3 4 5 6 7 8  weights2corr(
COIN,
w,
aglevs = NULL,
icodes = NULL,
cortype = "pearson",
withparent = TRUE
)

COIN 
COIN object 
w 
Full data frame of weights for each level 
aglevs 
A 2length vector with two aggregation levels to correlate against each other 
icodes 
List of two character vectors of indicator codes, corresponding to the two aggregation levels 
cortype 
Correlation type. Either 
withparent 
Logical: if 
This function is principally used inside rew8r()
. The w
argument should be a data frame of weights, of the same format
as the data frames found in .$Parameters$Weights
.
A list where .$cr
is a vector of correlations between each indicator and the index, and
.$dat
is a data frame of rankings, with unit code, and index, input and output scores
rew8r()
Interactive app for adjusting weights and seeing effects on correlations
getCorr()
Get correlations between indicators/levels
1 2 3 4 5  # build ASEM COIN up to aggregation
ASEM < build_ASEM()
# get correlations between pillars (level 2) and index (level 4)
# original weights used just for demonstration, normally you would alter first.
l < weights2corr(ASEM, ASEM$Parameters$Weights$Original, aglevs = c(2,4))

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.