get.pgs.percentiles {ApplyPolygenicScore} | R Documentation |
get.pgs.percentiles
Description
Calculate percentiles and report decile and quartile ranks for a vector of polygenic scores
Usage
get.pgs.percentiles(pgs, n.percentiles = NULL)
Arguments
pgs |
numeric vector of polygenic scores |
n.percentiles |
integer number of percentiles to calculate (optional) |
Value
data frame with columns for percentile, decile, quartile, and optional n.percentiles
Examples
x <- rnorm(100);
get.pgs.percentiles(x, n.percentiles = 20);
[Package ApplyPolygenicScore version 3.0.1 Index]