Learn R Programming

GRAB (version 0.2.3)

Batcheffect.Test: Test for batch effect

Description

This function test for the allele frequency difference between the study cohort and the external datasets.

Usage

Batcheffect.Test(n0, n1, n.ext, maf0, maf1, maf.ext, pop.prev, var.ratio = 1)

Value

A numeric of batch effect p-value

Arguments

n0

A numeric. The sample size of cases in the study cohort

n1

A numeric. The sample size of controls in the study cohort

n.ext

A numeric. The sample size of external datasets

maf0

A numeric. The MAF of the cases.

maf1

A numeric. The MAF of the controls

maf.ext

A numeric. The MAF of the external datasets.

pop.prev

A numeric. The population prevalence of the disease.

var.ratio

A numeric. The variance ratio calculated by sparseGRM.