powered by
Calculate percentiles and report decile and quartile ranks for a vector of polygenic scores
get.pgs.percentiles(pgs, n.percentiles = NULL)
data frame with columns for percentile, decile, quartile, and optional n.percentiles
numeric vector of polygenic scores
integer number of percentiles to calculate (optional)
x <- rnorm(100); get.pgs.percentiles(x, n.percentiles = 20);
Run the code above in your browser using DataLab