overlapMatrix: Compute a matrix indicating overlaps between groups

Description Usage Arguments Details Value Author(s) Examples

Description

Compute a matrix indicating the number of overlaps between groups.

Usage

1

Arguments

X

The design matrix, without an intercept, as in grpregOverlap.

group

A list of vectors containing group information, as in grpregOverlap.

Details

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

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.

Author(s)

Yaohui Zeng <yaohui-zeng@uiowa.edu>

Examples

1
2
3
4

Example output

Loading required package: Matrix
Loading required package: grpreg

grpregOverlap documentation built on May 2, 2019, 4:47 a.m.