Gstat: Title Calculate G statistic

Description Usage Arguments Value

View source: R/statFunctions.R

Description

Title Calculate G statistic

Usage

1
Gstat(n2, n4, n1 = NULL, n3 = NULL, q = 0.5)

Arguments

n2

Counts of allele A and group 1

n4

Counts of allele B and group 1

n1

Counts of allele A and group 2

n3

Counts of allele B and group 2

q

The baseline allele frequencies. If no n1 and n3 are given, q is used to simulate allele counts using the same total counts as n2+n4.

Value

A vector of G statistic for each variant


eyalbenda/xQTLstats documentation built on Dec. 20, 2021, 7:39 a.m.