calc_compindex {compindexR}R Documentation

Calculating composite indicator automatically step by step

Description

Calculates composite indicator by excluding the least significant variable at each step.

Usage

calc_compindex(
  x,
  avg_type = "simple",
  scaling_method = "min-max",
  vif_based_calc = FALSE,
  si_diff = 0.05
)

Arguments

x

A Dataframe

avg_type

Choosing average type. So far "simple", "geometric" and "harmonic" average are available

scaling_method

Scaling method selection. So far "min-max" and "standardization" are available

vif_based_calc

If TRUE, variable with highest VIF is removed at each step. Default value is FALSE

si_diff

Tolerance for normalized Si calculation. Can be between 0 and 1

Value

A list of lists

Examples

x <- data.frame(rnorm(20),rnorm(20),rnorm(20),rnorm(20))
calc_compindex(x, avg_type = "simple",
scaling_method = "min-max",
vif_based_calc = FALSE,
si_diff = 0.1)

[Package compindexR version 0.1.3 Index]