generator_PLN | R Documentation |
Simulate count data under the Poisson log-Normal model
generator_PLN(Sigma, covariates = NULL, n = 50, norm = FALSE)
Sigma |
Covariance matrix of the normal hidden layer of parameters |
covariates |
a data.frame or matrix containing data covariates. If not NULL, defines the number of simulated rows. |
n |
number of rows to simulate |
norm |
should the parameters be normalized ? |
if norm=FALSE Y: the simulated counts
if norm=TRUE
Y:simulated counts
U: the normalized Gaussian parameters
G<-generator_graph(p=10,graph="tree")
sigma<-generator_param(G=G)$sigma
generator_PLN(as.matrix(sigma))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.