rmono | R Documentation |
Randomly impose a monotone missingness pattern by replacing the ends
of each column of the input matrix by a random number of NA
s
rmono(x, m = 7, ab = NULL)
x |
data |
m |
minimum number of non- |
ab |
a two-vector of |
The returned x
always has one (randomly selected)
complete column, and no column has fewer than m
non-missing entries. Otherwise, the proportion of missing entries
in each column can be uniform, or it can have a beta
distribution with parameters \alpha
(ab[1]
) and
\beta
(ab[2]
)
returns a matrix
with the same dimensions as the input x
Robert B. Gramacy rbg@vt.edu
https://bobby.gramacy.com/r_packages/monomvn/
randmvn
out <- randmvn(10, 3)
rmono(out$x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.