standardize_vector {sdsfun} | R Documentation |
To calculate the Z-score using variance normalization, the formula is as follows:
Z = \frac{(x - mean(x))}{sd(x)}
standardize_vector(x)
x |
A numeric vector |
A standardized numeric vector
standardize_vector(1:10)