View source: R/linear_aggregation.R
linear_aggregation | R Documentation |
This is a function to apply linear aggregation index
linear_aggregation(data, weights = rep(1/ncol(data), ncol(data)))
data |
dataframe with rows = observations and columns = quantitative variables |
weights |
vector of weights (default all weights = 1/ ncol(dataframe)) |
It returns a dataframe with rows = observations and column = composite indicator
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.