makeModel: Generate a design matrix corresponding to the 2-1-0 hurdle

View source: R/GroupLassoHurdle.R

makeModelR Documentation

Generate a design matrix corresponding to the 2-1-0 hurdle

Description

Generate a design matrix corresponding to the 2-1-0 hurdle

Usage

makeModel(
  zif,
  nodeId,
  fixed = NULL,
  center = TRUE,
  scale = FALSE,
  conditionalCenter = TRUE,
  tol = 0.001
)

Arguments

zif

zero-inflated covariates

nodeId

names to be used for nodes. 'colnames' of 'zif' will be used if provided.

fixed

optional matrix of fixed predictors

center

center design matrix

scale

scale design matrix

conditionalCenter

in positive predictors, center only the non-zero components (design matrix will still be centered, and orthogonal to indicators)

tol

tolerance for declaring a parameter equal to zero

Value

design matrix, with attribute fixedCols giving indices of unpenalized intercept columns. Each gene appears in adjacent columns with its continuous component first, followed by its binarization.


amcdavid/HurdleNormal documentation built on May 14, 2022, 11:12 p.m.