Is there a function that given a vector of numbers, returns another vector with the standard units corresponding to each value?
where standard unit: how many SDs a v
How about simply (x-mean(x))/sd(x), or am I missing some subtlety here?
(x-mean(x))/sd(x)