rgps: Generates samples from the null distribution of the GPS...

Description Usage Arguments Value

View source: R/gps.R

Description

Generates samples from the null distribution of the GPS statistic using samples from the exponential mixture

Usage

1
rgps(n, no_snps, rates = c(5, 1), alt_weight = 0.01)

Arguments

n

Sample size

no_snps

Number of SNPs/p-values to generate for each simulated GWAS data set

rates

Rate parameter for each exponential component

alt_weight

Mixing weight for first exponential component; second has weight 1-alt_weight

Value

Sample from the GPS null distribution


twillis209/pidProjCode documentation built on Nov. 7, 2021, 3:01 p.m.