Learn R Programming

grpregOverlap (version 2.2-0)

overlapMatrix: Compute a matrix indicating overlaps between groups

Description

Compute a matrix indicating the number of overlaps between groups.

Usage

overlapMatrix(X, group)

Arguments

X
The design matrix, without an intercept, as in grpregOverlap.
group
A list of vectors containing group information, as in grpregOverlap.

Value

A square (sparse) matrix $C$: $C[i, j]$ is the number of overlapped variables between group i and j. Diagonal value $C[i, i]$ is the number of variables in group i.

Details

This function is intended to provide an interface for users to check the overlapping structure among groups.

Examples

Run this code
data(pathway.dat)
X <- pathway.dat$expression
group <- pathway.dat$pathways
overlap.mat <- overlapMatrix(X, group)

Run the code above in your browser using DataLab