Learn R Programming

CateSelection (version 1.0)

MDR.sing.mod: Single Model with and without MDR interactions

Description

Computes coefficient of determination and p-value for both single model with and without MDR interactions

Usage

MDR.sing.mod(x, y, order = NULL, trace = NULL, ...)

Arguments

x
A matrix of genotypic data/genetic markers (predictor variables), where the rows are the samples and the columns are the predictors.
y
A numeric vector of phenotypic data (response variable).
order
The order of interaction. Default is 2.
trace
Show computations? Default FALSE.
...
Other arguments for future methods.

Value

It returns a matrix with the index of interactive predictors, and the corresponding p-value, and adjusted coefficient of determination both for single models with and without MRD interactions.

References

Yi Xu, Jixiang Wu, Detecting higher-order interactions of SNP markers associated with three barley agronomic traits (unpublished).

Examples

Run this code
data(data2)
y <- data2[,1]
x <- data2[,-1]
res <- MDR.sing.mod(x,y,order=3)
res

Run the code above in your browser using DataLab