View source: R/simulate_poisson_matrix.R
sim_data_log | R Documentation |
simulate Poisson matrix
sim_data_log(
n,
p,
K = 3,
d = NULL,
add_background = TRUE,
background_unif_range = c(1, 2),
pi0 = 0.8,
var1 = 1,
var_e = 0,
n_simu = 10,
seed = 12345
)
The DGP is
Y\sim Poisson(\exp(l_0f_0'+LF'+E)),
l_{0i}\sim Uniform(),f_{0j}\sim Uniform(),
l_{ki}\sim N(0,d_k),f_{kj}\sim \pi_0\delta_0 + (1-\pi_0)N(0,\sigma^2_1),
e_{ij}\sim N(0,\sigma^2).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.