View source: R/normalization_abov_below_mean.R
normalization_abov_below_mean | R Documentation |
This transformation considers the indicators which are above and below an arbitrarily defined threshold, p, around the mean. The threshold p builds a neutral region around the mean, where the transformed indicator is zero. This reduces the sharp discontinuity, from -1 to +1, which exists across the mean value to two minor discontinuities, from -1 to 0 and from 0 to +1, across the thresholds
normalization_abov_below_mean(data, p = 0.01)
data |
dataframe with rows = observations and columns = quantiative variables |
p |
threshold for the window |
This function to normalize in -1, 0, and 1
It returns a datafame of normalized data
OECD/European Union/EC-JRC (2008), Handbook on Constructing Composite Indicators: Methodology and User Guide, OECD Publishing, Paris, <https://doi.org/10.1787/9789264043466-en>
data("Education")
Indicator=normalization_abov_below_mean(Education)
print(Indicator)
#---With different threshold
Indicator=normalization_abov_below_mean(Education,p=0.1)
print(Indicator)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.