input_variables: Input variables

input_variableR Documentation

Input variables

Description

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

Usage

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

m <- model() +
    input_variable("dose") +
    prm_log_normal("emax") +
    prm_log_normal("ed50") +
    obs_additive(eff~emax*dose/(ed50+dose))
render(m)

sebastianueckert/assemblerr documentation built on Sept. 30, 2022, 9:12 a.m.