View source: R/calc_compindex.R
calc_compindex | R Documentation |
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
)
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 |
A list of lists
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.