sampleDosages: Sample dosages from genotypes

Description Usage Arguments

View source: R/grspwr.R

Description

Creates random dosages from genotypes using fast binary search for r-squared. It will result in approximately correct r-squared.

Usage

1
sampleDosages(genotypes, info, epsilon = 0.01)

Arguments

genotypes

a vector of numeric genotypes (0,1,2)

info

Desired R^2 correlation between dosages and genotypes

epsilon

A halting parameter: When the total absolute difference between desired and obtained R^2 reaches epsilon the dosages are returned.


cth/grspwr documentation built on May 30, 2019, 6:25 a.m.