Description Usage Arguments Details Value Examples
Generates a sample zero-inflated data matrix.
1 2 3 4 5 6 7 8 9 10 | gen_zero_dat(
seed,
gen_para,
adj_mat,
n,
k_mode = 1,
min_num = 10,
therun = 1,
gen_uniform_degree = 1
)
|
seed |
A number, the seed passed to |
gen_para |
A string, the parametrization, |
adj_mat |
A square matrix of 0/1s, the adjacency matrix. |
n |
A positive integer, the number of samples. |
k_mode |
One of |
min_num |
A positive integer, the minimum number of 0s/1s in each column. If this is not satisfied, this random generator function will be rerun for up to 1000 times. |
therun |
A positive integer for internal use. Defaults to 1. |
gen_uniform_degree |
A positive integer, the maximum degree of the Hurdle polynomials in the conditional Hurdle distributions, defaults to |
See the simulations section in the paper associated with this package for details.
A generated data, containing
V |
A matrix of 0/1s of dimension |
Y |
A data matrix of dimension |
1 2 | x <- gen_zero_dat(1, "abk", make_dag(3, "chain"), 1000)
x <- gen_zero_dat(1, "pms", make_dag(3, "chain"), 1000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.