create_matrix_l_u {dRiftDM}R Documentation

Create a matrix for lower and upper

Description

Outsourced, deep inside the package function to avoid large nesting

Usage

create_matrix_l_u(l_u, conds, prm_labels = NULL)

Arguments

l_u

either a list or a vector of numeric values

conds

a character string, conceptually representing the conditions of a model

prm_labels

a character string with parameter labels. Used as a fall back when the default_values are not labeled (see details)

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_lower_upper_smart().

It assumes the following: l_u is either a list or a numeric vector.

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 l_u (matching its length if it is a vector, or matching the length of the entry "default_values" if it is a list).

See Also

simulate_data(), simulate_values()


[Package dRiftDM version 0.2.1 Index]