| n_scaled | R Documentation |
Scales a vector for normalisation using the method applied in the GII2020 for some indicators. This
does x_scaled <- (x-l)/(u-l) * scale_factor. Note this is not the minmax transformation (see n_minmax()).
This is a linear transformation with shift u and scaling factor u-l.
n_scaled(x, npara = c(0, 100), scale_factor = 100)
x |
A numeric vector |
npara |
Parameters as a vector |
scale_factor |
Optional scaling factor to apply to the result. Default 100. |
This function also supports parameter specification in iMeta for the Normalise.coin() method.
To do this, add columns scaled_lower, scaled_upper and scale_factor to the iMeta table, which specify the
first and second elements of npara, respectively. Then set f_n_para = "use_iMeta" within the
global_specs list. See also examples in the normalisation vignette.
Scaled vector
x <- runif(20)
n_scaled(x, npara = c(1,10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.