powered by
Calculates composite indicator by excluding the least significant variable at each step.
calc_compindex( x, avg_type = "simple", scaling_method = "min-max", vif_based_calc = FALSE, si_diff = 0.05 )
A list of lists
A Dataframe
Choosing average type. So far "simple", "geometric" and "harmonic" average are available
Scaling method selection. So far "min-max" and "standardization" are available
If TRUE, variable with highest VIF is removed at each step. Default value is FALSE
Tolerance for normalized Si calculation. Can be between 0 and 1
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)
Run the code above in your browser using DataLab