View source: R/generate_my_w.R
generate_my_w | R Documentation |
Generate the matrix W as seen in equation 8 for use in the function.
generate_my_w(X = matrix(), Z = matrix())
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. |
Generated W matrix nrow(X) by (ncol(X)+ncol(X) by ncol(Z))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.