Learn R Programming

Indicator (version 0.1.3)

linear_aggregation: Linear Aggregation

Description

This is a function to apply linear aggregation index

Usage

linear_aggregation(data, weights = rep(1/ncol(data), ncol(data)))

Value

It returns a dataframe with rows = observations and column = composite indicator

Arguments

data

dataframe with rows = observations and columns = quantitative variables

weights

vector of weights (default all weights = 1/ ncol(dataframe))

References

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>

Examples

Run this code

data("Education")
Indicator=linear_aggregation(Education)
print(Indicator)

Run the code above in your browser using DataLab