generate_my_w {MADMMplasso} | R Documentation |
Generate the matrix W as seen in equation 8 for use in the function.
Description
Generate the matrix W as seen in equation 8 for use in the function.
Usage
generate_my_w(X = matrix(), Z = matrix())
Arguments
X |
N by p matrix of predictors |
Z |
N by nz matrix of modifying variables. The elements of z may represent quantitative or categorical variables, or a mixture of the two. Categorical variables should be coded by 0-1 dummy variables: for a k-level variable, one can use either k or k-1 dummy variables. |
Value
Generated W matrix nrow(X) by (ncol(X)+ncol(X) by ncol(Z))
[Package MADMMplasso version 1.0.0 Index]