store.x: Matrix to store results for covariates x.

Description Usage Arguments Value Examples

View source: R/main_functions.R

Description

Forms a matrix that will be used to store regression results of response y on covariates x.

Usage

1
store.x(XX)

Arguments

XX

(n by m) matrix of main covariates where m is the number of covariates and n is the sample size.

Value

(m by 1) matrix of zeroes

Examples

1
2
3
xx = matrix(rnorm(100*5, 0, 1),100,5)
colnames(xx) <- paste0("X",1:ncol(xx))
store.x(xx)

rakheon/d2wlasso documentation built on Feb. 26, 2020, 10:39 p.m.