Function for reproducing 'internal' simulation study. See vignette.
Arguments
- p
number of features
- n.target
sample size for target data set
- n.source
sample size(s) for source data set(s), scalar or vector of length k
- k
number of source data sets
- family
"Gaussian", "binomial" or "poisson"
- prop
approximate proportion of features with effects
- rho.beta
correlation between effects (across different data sets)
- rho.x
base for decreasing correlation structure for correlation between features
- w
weight between signal and noise
- trans
logical vector of length \(k\): transferable (TRUE) or non-transferable (FALSE) source
- exp
non-negative vector of length \(k\) for transforming beta to sign(beta)*abs(beta)^exp