simulate_data {Unico} | R Documentation |
Simulate data under Unico model assumption
Description
Simulate all model parameters and sample source specific data from multivariate gaussian with full covariance structure.
Usage
simulate_data(
n,
m,
k,
p1,
p2,
mus_mean = 10,
mus_std = 2,
gammas_mean = 1,
gammas_std = 0.1,
betas_mean = 1,
betas_std = 0.1,
sigmas_lb = 0,
sigmas_ub = 1,
taus_std = 0.1,
log_file = "Unico.log",
verbose = FALSE
)
Arguments
n |
A positive integer indicating the number of observations to simulate. |
m |
A positive integer indicating the number of features to simulate. |
k |
A positive integer indicating the number of sources to simulate. |
p1 |
A non-negative integer indicating the number of source-specific covariates to simulate. |
p2 |
A non-negative indicating the number of non-source-specific covariates to simulate. |
mus_mean |
A numerical value indicating the average of the source specific means. |
mus_std |
A positive value indicating the variation of the source specific means across difference sources. |
gammas_mean |
A numerical value indicating the average effect sizes of the source-specific covariates. |
gammas_std |
A non-negative numerical value indicating the variation of the effect sizes of the source-specific covariates. |
betas_mean |
A numerical value indicating the average effect sizes of the non-source-specific covariates. |
betas_std |
A non-negative numerical value indicating the variation of the effect sizes of the non-source-specific covariates. |
sigmas_lb |
A numerical value indicating the lower bound of a uniform distribution from which we sample entries of matrix |
sigmas_ub |
A numerical value indicating the upper bound of a uniform distribution from which we sample entries of matrix |
taus_std |
non-negative numerical value indicating the variation of the measurement noise across difference features. |
log_file |
A path to an output log file. Note that if the file |
verbose |
A logical value indicating whether to print logs. |
Details
Simulate data based on the generative model described in function Unico.
Value
A list of simulated model parameters, covariates, observed mixture, and source-specific data.
X |
An |
W |
An |
C1 |
An |
C2 |
An |
Z |
A |
mus |
An |
gammas |
An |
betas |
An |
sigmas |
An |
taus |
An |
Examples
data = simulate_data(n=100, m=2, k=3, p1=1, p2=1, taus_std=0, log_file=NULL)