a list with components "x", "y", "xtest", "ytest", "mutest", and "sigma", where "mutest" is the true test mean, and "ytest <- mutest + rnorm(ntest)*sigma."
Arguments
ntrain
number of training examples.
ntest
number of test examples.
p
number of features.
snr
desired SNR (signal-to-noise ratio).
rho
for homecourt=TRUE 'rho' controls the autocorrelation between variables. Variables k units apart have correlation rho^k.
sparsity
fraction of variables with nonzero coefficients.
homecourt
logical; if TRUE then correlated features, with a special boost for large coefficients, mimicking the uniLasso two-stage algorithm.