Generates simulated observations Y under a ZIP-LN-PCA structure from
parameters in theta and dimensions in dim.
Arguments
- X
An \((n \times p) \cdot d\) design matrix stacked so that
VectorToMatrix(X %*% B, n, p)produces the mean matrixmu.- theta
List of model parameters with components:
B: coefficient matrix (d x 1 or compatible)D: zero-inflation coefficient matrix (d x 1 or compatible)C: loading matrix (p x q)
- dim
List of dimensions with entries
n,p,d,q.
Value
A list with elements:
Y: simulated counts (n x p)W: latent scores (n x q)U: zero-inflation indicators (n x p)Z: Poisson draws before zero-inflation (n x p)Lambda: Poisson intensities (n x p)mu: mean matrix (n x p)
Details
Relies on VectorToMatrix() being available in the package.