Learn R Programming

rareGE (version 0.1)

wuweights: Wu weight function

Description

Calculate beta density weights with parameters 1 and 25 as proposed by Wu et al. (2011)

Usage

wuweights(maf)

Arguments

maf
a numeric vector of minor allele frequencies. Values must be between 0 and 1.

Value

A numeric vector of weights, with the same length as maf.

References

Wu MC, Lee S, Cai T, Li Y, Boehnke M, Lin X. (2011) Rare-variant association testing for sequencing data with the sequence kernel association test. Am J Hum Genet 89, 82-93.

Examples

Run this code
maf <- seq(0, 1, by=0.1)
wuweights(maf)

Run the code above in your browser using DataLab