snpTest: Run association test between SNP and phenotype

Usage Arguments Value

View source: R/utils.R

Usage

1
snpTest(snpName, dat, dist)

Arguments

snpName

the name of the snp to run the test on

dat

the dataframe with the genotype and phenotype attached

dist

the probability distribution of the phenotype This function takes the genotype and phenotype information and runs the association test between the given SNP and the phenotype. The association test is either linear or logistic regression as determined by the distribution of the phenotype.

Value

the pvalue


weinstockj/gwassim documentation built on May 4, 2019, 4:18 a.m.