Last chance! 50% off unlimited learning
Sale ends in
This function lets to normalise simple indicators according to the polarity of each one.
normalise_ci(x, indic_col, polarity, method=1, z.mean=0, z.std=1, ties.method ="average")
A data frame containing simple indicators.
Simple indicators column number.
Normalisation methods:
1 (default) = standardization or z-scores using the following formulation:
2 = Min-max method using the following formulation:
if polarity="POS":
3 = Ranking method. If polarity="POS" ranking is increasing, while if polarity="NEG" ranking is decreasing.
Polarity vector: "POS" = positive, "NEG" = negative. The polarity of a individual indicator is the sign of the relationship between the indicator and the phenomenon to be measured (e.g., in a well-being index, "GDP per capita" has 'positive' polarity and "Unemployment rate" has 'negative' polarity).
If method=1, Average shifting parameter. Default is 0.
If method=1, Standard deviation expansion parameter. Default is 1.
If method=3, A character string specifying how ties are treated, see rank
for details. Default is "average".
A data.frame containing normalised score of the choosen simple indicators.
Normalisation method used.
OECD, "Handbook on constructing composite indicators: methodology and user guide", 2008, pag.30.
# NOT RUN {
data(EU_NUTS1)
# Standard z-scores normalisation #
data_norm = normalise_ci(EU_NUTS1,c(2:3),c("NEG","POS"),method=1,z.mean=0, z.std=1)
summary(data_norm$ci_norm)
# Normalisation for MPI index #
data_norm = normalise_ci(EU_NUTS1,c(2:3),c("NEG","POS"),method=1,z.mean=100, z.std=10)
summary(data_norm$ci_norm)
data_norm = normalise_ci(EU_NUTS1,c(2:3),c("NEG","POS"),method=2)
summary(data_norm$ci_norm)
# }
Run the code above in your browser using DataLab