Function to simulate data from \(MN_{nxr}(XB, I, V)\), where \(X \sim N_p(0, Gamma)\), \(B \sim \sum_k w_k N_r(0, Sigma_k)\), with \(Gamma\), \(w_k\), \(Sigma_k\), and \(V\) defined by the user.
scalar indicating the number of samples.
scalar indicating the number of variables.
scalar indicating the number of causal variables.
scalar indicating the number of responses.
a list of numeric vectors (one element for each mixture component) indicating in which responses the causal variables have an effect.
numeric vector of intercept for each response.
per-response proportion of variance explained by the causal variables.
scalar or numeric vector (one element for each mixture component) with positive correlation [0, 1] between causal effects.
scalar or numeric vector (one element for each mixture component) with the diagonal value for Sigma_k;
scalar or numeric vector (one element for each mixture component) with mixture proportions associated to each mixture component.
scalar indicating the positive correlation [0, 1] between variables.
scalar indicating the diagonal value for Gamma.
scalar indicating the positive correlation [0, 1] between residuals
A list with some or all of the following elements:
n x p matrix of variables.
n x r matrix of responses.
p x r matrix of effects.
r x r residual covariance matrix among responses.
list of r x r covariance matrices among the effects.
p x p covariance matrix among the variables.
r-vector of intercept for each response.
a list of numeric vectors of indexes indicating which responses have causal effects for each mixture component.
p_causal-vector of indexes indicating which variables are causal.
p_causal-vector of indexes indicating from which mixture components each causal effect comes.