Learn R Programming

ApplyPolygenicScore (version 4.0.1)

get.pgs.percentiles: 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)

Value

data frame with columns for percentile, decile, quartile, and optional n.percentiles

Arguments

pgs

numeric vector of polygenic scores

n.percentiles

integer number of percentiles to calculate (optional)

Examples

Run this code
x <- rnorm(100);
get.pgs.percentiles(x, n.percentiles = 20);

Run the code above in your browser using DataLab