Description Usage Arguments Value Examples
Simulate data and parameters including missing actors.
1 | generate_missing_data(n, p, r = 1, type, plot = FALSE, dens = 2/p)
|
n |
number of samples |
p |
number of observed species |
r |
number of missing actors |
type |
type of conditional dependency structure (graph), either "erdos", "cluster", or "scale-free". |
plot |
should the simulated graph be plotted ? default to FALSE |
dens |
density parameter for cluster and erdos graphs. For erdos graphs, this corresponds to the edges probability of connectance |
Y: Observed count data
UH: Hidden latent Gaussian parameters
Sigma: Observed bloc of the variance-covariance matrix
Omega: Observed bloc of the precision matrix
G: The generated conditional dependency structure
TC: The true clique of neighbors of the missing actors (a list if r>1)
H: Indexes corresponding to missing actors in the original data
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.