View source: R/run-pgs-statistics.R
get.pgs.percentiles | R Documentation |
Calculate percentiles and report decile and quartile ranks for a vector of polygenic scores
get.pgs.percentiles(pgs, n.percentiles = NULL)
pgs |
numeric vector of polygenic scores |
n.percentiles |
integer number of percentiles to calculate (optional) |
data frame with columns for percentile, decile, quartile, and optional n.percentiles
x <- rnorm(100);
get.pgs.percentiles(x, n.percentiles = 20);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.