input_variables: Input variables

Description Usage Arguments Details Value Examples

Description

These building block declare input variables, i.e., variables that are defined in the dataset.

Usage

1
2
3
input_variable(name)

dataset(path, use_only_filename = FALSE)

Arguments

name

Variable name

path

Dataset path

use_only_filename

Whether to include the path of the file

Details

An input variable is defined in the dataset and is declared so that it can be used in the rest of the model definition. The function input_variable() declares a single variable whereas the dataset() function reads the header of the file provided and declares all variables found.

Value

A building block of type 'input_variable'

Examples

1
2
3
4
5
6
m <- model() +
    input_variable("dose") +
    prm_log_normal("emax") +
    prm_log_normal("ed50") +
    obs_additive(eff~emax*dose/(ed50+dose))
render(m)

assemblerr documentation built on Jan. 13, 2022, 1:07 a.m.