Function for reproducing 'internal' simulation study. See vignette.
simulate(
p = 1000,
n.target = 100,
n.source = 150,
k = 2,
family = "gaussian",
prop = 0.01,
rho.beta = 0.95,
rho.x = 0.95,
w = 0.5,
trans = rep(TRUE, times = k),
exp = rep(1, times = k)
)number of features
sample size for target data set
sample size(s) for source data set(s), scalar or vector of length k
number of source data sets
"Gaussian", "binomial" or "poisson"
approximate proportion of features with effects
correlation between effects (across different data sets)
base for decreasing correlation structure for correlation between features
weight between signal and noise
logical vector of length \(k\): transferable (TRUE) or non-transferable (FALSE) source
non-negative vector of length \(k\) for transforming beta to sign(beta)*abs(beta)^exp
Use [glmtrans::models()] for reproducing 'external' simulation study.