Description Usage Arguments Value
Useful for reproducing observed NA patterns in simulated data. If q = (nrow(data) / nrow(NA_pattern)
is an integer greater than 1, will replicate NA_pattern as kronecker(as.matrix(NA_pattern), rep(1, q)
.
1 |
data |
the matrix/data.frame into which to write NA entries. |
NA_pattern |
the matrix/data.frame from which to write NA entries. |
a data.frame/matrix similar to data
that includes all the NA entires as NA_pattern
. If NA_pattern == NULL
, the data.frame/matrix is returned unaltered.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.