fRGInteraction: Interaction Test by Functional Regression Model

Description Usage Arguments Details Value Author(s) Examples

View source: R/fRGInteraction.R

Description

Test interaction between two gene (or genomic regions) with chi-squared test.

Usage

1
fRGInteraction(phenoData, x_A, x_B)

Arguments

phenoData

Vector of phenotype data which can be quantitative trait or binary trait.

x_A

Expansion data matrix of Genotype of gene A.

x_B

Expansion data matrix of Genotype of gene B.

Details

This function takes phenotype vector and expansed genotype matrices as input. It is the most important part of this software package. It is called by functions "innerEpi" and "innerEpi" of this package. The interaction between gene A and gene B is tested with chi-squared test.

Value

It returns the p value of chi-squared test for epistasis detection between gene A and gene B.

Author(s)

Futao Zhang

Examples

1
2
3
4
x_A<-as.matrix(rnorm(1000,mean=0,sd=1))
x_B<-as.matrix(rnorm(1000,mean=0,sd=1))
phenoData<-runif(1000,15,60)
fRGInteraction(phenoData,x_A,x_B)

FRGEpistasis documentation built on Nov. 8, 2020, 5:51 p.m.