Outsourced, deep inside the package function to avoid large nesting
Value
a matrix indicating either the upper or lower end of a parameter
space. There will be as many rows as conds implies. The number of columns
depend on input (matching its length if it is a vector, or matching the
length of the entry "default_values" if it is a list). If input is
NULL, then NULL is returned.
Details
The goal of this function is to build up a matrix, serving as the upper or
lower end of a parameter space (relevant when simulating data). The function
gets called by get_parameters_smart().
It assumes the following: input is either a list or a numeric vector.
The easiest case is when it is a numeric vector. In this case, the function builds a matrix with as many rows as entries in
conds. The rows will also be labeled according toconds. The column names are either the names specified with the numeric vector, or the labels specified inprm_labelsThe less intuitive case is when
inputis a list. In this case, the list requires an entry called "default_values" which specifies the named or plain numeric vector as above. If the list only contains this entry, then the behavior is as ifinputwas already a numeric vector. However, theinputlist can also have entries labeled as specific conditions, which contain named (!) numeric vectors with parameter labels. This will modify the value for the upper/lower parameter space with respect to the specified parameters in the respective condition.#'
