SparseExample: Synthetic dataset with sparse design matrix

SparseExampleR Documentation

Synthetic dataset with sparse design matrix

Description

Randomly generated data for Gaussian regression example with the design matrix x being in sparse matrix format.

Usage

data(SparseExample)

Format

List containing the following elements:

x

100 by 20 matrix of numeric values. x is in sparse matrix format, having class "dgCMatrix".

y

Numeric vector of length 100.


glmnet documentation built on Aug. 22, 2023, 9:12 a.m.