View source: R/pca_weighting.R
pca_weighting | R Documentation |
The pca_weighting function is designed to perform a principal component analysis (PCA) on the input data to calculate weights that correct for overlapping information between related indicators. This process makes it possible to create a composite indicator that captures as much information as possible from individual indicators while reducing the dimensionality of the data
pca_weighting(data)
data |
dataframe with rows = observations and columns = quantitative variables |
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_pca=pca_weighting(Education)
print(Indicator_pca)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.