runexample: runexample

Description Usage Arguments Details Examples

View source: R/runexample.R

Description

Fit elastic net models (without/with batch effects) for a generated example dataset

Usage

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)

Arguments

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

Details

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

Examples

1
2
3
4
## Not run:  
 runexample(seed=1)

## End(Not run)

oyvble/lme1en documentation built on April 30, 2020, 2:41 p.m.