View source: R/general_functions.R
gen.missing | R Documentation |
Function to generate a matrix with values 0 or 1, where 0 indicating the entry is missing
gen.missing(pi_mat, symm = TRUE)
pi_mat |
A |
symm |
A |
A numeric
p x p matrix.
Haotian Xu
p = 5 pi_mat = matrix(0.9, p, p) eta_mat = gen.missing(pi_mat, symm = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.