iterateModels_raw: Iterate combinations of parameters

Description Usage Arguments Details Value

View source: R/Rdata.R

Description

This function takes a list of parameters for which several values are to be evaluated. These values can be vectors of numbers or lists that contain blocks of parameters. All combinations are formed and passed to a user supplied function f_iterate(). This functions takes an index of the combination together with parameter values. Argument callWithList controls whether there is exactly one argument per parameter position or wether one more step of unlisting takes place. In case that a block of parameters is supplied, all values of the block are passed as individual arguments to f_iterate() in case callWithList == FALSE.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
iterateModels_raw(
  modelList,
  models,
  f_iterate = function(...) list(...),
  ...,
  callWithList = FALSE,
  callMode = NULL,
  restrictArgs = TRUE,
  parallel = FALSE,
  lapply__
)

Arguments

modelList

list specifying the models (see details)

models

matrix containing indeces to sub-models (see details)

f_iterate

function to be iterated across models

...

extra arguments to be passed to f_iterate()

callWithList

boolean to indicate whether model combination is to be supplied as a list. Otherwise model specification is inlined as arguments (see details)

callMode

'inline', 'list', 'inlist'

restrictArgs

boolean to indicate whether over-supplied arguments (with respect to f_iterate())

parallel

boolean to inidcate whether iteration should be parallelized with parallelize.dynamic

lapply__

the iterator to be used (ignored at this moment)

Details

#@param selectIdcs restrict models to the given indeces

Value

list containing the result of f_iterate() for all paramter combinations


sboehringer/gwasWeighted documentation built on Dec. 22, 2021, 10:19 p.m.