Description Usage Arguments Value See Also
View source: R/check.predictorMatrixDS.R
This helper function creates a valid predictMatrix
. The
predictorMatrix
is an argument to the mice
function.
It specifies the target variable or block in the rows, and the
predictor variables on the columns. An entry of 0
means that
the column variable is NOT used to impute the row variable or block.
A nonzero value indicates that it is used.
1 | checkpredictorMatrixDS(predictorMatrix, data, blocks = NULL)
|
data |
A |
blocks |
An optional specification for blocks of variables in the rows. The default assigns each variable in its own block. |
A matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.