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.