- seed
Integer, default = 1. Random seed for reproducibility of simulated data.
- nvec
Numeric vector (length >= 2). Sample sizes of each study (e.g., `c(150, 200)` for 2 studies with 150 and 200 samples).
- p
Integer, default = 50. Number of variables (features) in the data.
- q
Integer, default = 3. Number of common factors (shared across all studies).
- qs
Numeric vector with length equal to `length(nvec)`, default = `rep(2, length(nvec))`.
Number of study-specific factors for each study (e.g., `c(2,2)` for 2 studies each with 2 specific factors).
- err.type
Character, default = "gaussian". Error distribution type, one of:
- "gaussian": Gaussian (normal) distribution;
- "mvt": Multivariate t-distribution;
- "exp": Exponential distribution (centered to mean 0);
- "t": Univariate t-distribution (independent across variables);
- "mixnorm": Mixture of two normal distributions;
- "pareto": Pareto distribution (centered to mean 0).
- rho
Numeric vector of length 2, default = `c(1,1)`. Scaling factors for:
- `rho1`: Common factor loadings (matrix `A0`);
- `rho2`: Study-specific factor loadings (matrix list `Blist0`).
- sigma2_eps
Numeric, default = 0.1. Variance of the error term (controls noise level).
- nu
Integer, default = 1. Degrees of freedom for t-distribution ("mvt" or "t" `err.type`).
Ignored for other error distributions.