Description Usage Arguments Details Examples
Fit elastic net models (without/with batch effects) for a generated example dataset
1 2 3 4 | runexample(TestTrainProp = 0.6, ntot = 500, nsites = 1000,
nbatches = 20, propAgeAs = 0.05, sd_batch = 1, sd_signal = 1,
sd_bparam = 0.1, ageRange = c(10, 35), seed = NULL,
verbose = TRUE)
|
TestTrainProp |
Proportion of data to be used for training (remaining used as test) |
ntot |
total number of observations (including train and test data) |
nsites |
number of sites |
nbatches |
number of batches |
propAgeAs |
#proportion of sites with assosiation to age |
sd_batch |
standard dev of batch effects (normal distr effects) |
sd_signal |
standard dev of signal (norm distr noise) |
sd_bparam |
sd of age coefficient |
ageRange |
Age range of considered ages |
seed |
The user can set seed for reproducibility if wanted |
verbose |
boolean, show progress Default: TRUE |
The function do following steps: 1) simulate dataset 2) Split data into train/test 3) For two comparing models we run cross-valid for calibration and obtain performance using test data
1 2 3 4 | ## Not run:
runexample(seed=1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.