powered by
This function applies a quantile-quantile transformation to the data, resulting in a distribution that is approximately normal but has the same ranks as the original data.
zscores(y, ties.method = "average")
A vector.
The option ties.method in the rank function.
ties.method
rank
A vector of the same length as y.
y
# NOT RUN { y <- rexp(100) z <- tensr:::zscores(y) par(mfrow = c(1, 3)) hist(y) hist(z) plot(y,z) # }
Run the code above in your browser using DataLab