View source: R/melonnpan_utilities.R
rntransform | R Documentation |
This function rank normal transforms a vector of data. The procedure is built off of that provided in the GenABEL pacakge.
rntransform(y, split_ties = FALSE)
y |
a numeric vector which will be rank normal transformed |
split_ties |
a binary string of FALSE (default) or TRUE indicating if tied values, of the same rank, should be randomly split giving them unique ranks. |
returns a numeric vector, with the same length as y, of rank normal transformed values
## simulate a negative binomial distribution of values
nb_data = rnbinom(500, mu = 40, size = 100)
## rank normal transform those values
rnt_data = rntransform( nb_data , split_ties = TRUE )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.