n_zscore | R Documentation |
Standardises a vector x
by scaling it to have a mean and standard deviation specified by m_sd
.
n_zscore(x, m_sd = c(0, 1))
x |
A numeric vector |
m_sd |
A vector |
This function also supports parameter specification in iMeta
for the Normalise.coin()
method.
To do this, add columns zscore_mean
, and zscore_sd
to the iMeta
table, which specify the
mean and standard deviation to scale each indicator to, respectively. Then set f_n_para = "use_iMeta"
within the
global_specs
list. See also examples in the normalisation vignette.
Numeric vector
x <- runif(20)
n_zscore(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.