powered by
This is a function to apply linear aggregation index
linear_aggregation(data, weights = rep(1/ncol(data), ncol(data)))
It returns a dataframe with rows = observations and column = composite indicator
dataframe with rows = observations and columns = quantitative variables
vector of weights (default all weights = 1/ ncol(dataframe))
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=linear_aggregation(Education) print(Indicator)
Run the code above in your browser using DataLab