Learn R Programming

FRGEpistasis (version 1.8.0)

snpPairInteraction: SNP-SNP interaction

Description

Test the interaction of one SNP with another

Usage

snpPairInteraction(pheno, snp1, snp2)

Arguments

pheno
Vector of phenotype data which can be quantitative trait or binary trait.
snp1
Vector of genotype data of SNP1.
snp2
Vector of genotype data of SNP2.

Value

Return the p value for snp-snp interaction

Details

This function tests the interaction of one SNP with another.

Examples

Run this code

pheno<- round(runif(1000,40,60))
snp1<-round(runif(1000,0,2))
snp2<-round(runif(1000,0,2))
pval=snpPairInteraction(pheno,snp1,snp2)

Run the code above in your browser using DataLab