Learn R Programming

CINOEDV (version 2.0)

CoInformation: Co-Information Computation

Description

This function compute co-information value of a given SNP combination.

Usage

CoInformation(pts, class, factor)

Arguments

pts
matrix. SNP data. Each row represents a sample. Each column represents a SNP. For the element, 1 -> AA, 2 -> Aa, 3 -> aa.
class
matrix. Class labels of samples. It only has one row. Each column represents a class label. For the element, 1 -> case, 2-> control.
factor
numeric. The considered SNP or SNP-combination. For example, factor <- 5, or factor <- c(2,5)

Value

Co_Information_Value: matrix. co-information value of a give SNP combination.

References

None

Examples

Run this code
data(pts)
data(class)
factor <- c(2,5)
V <- CoInformation(pts, class, factor)
Co_Information_Value <- V$Co_Information_Value

Run the code above in your browser using DataLab