input_variable {assemblerr}R 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)

Arguments

name

Variable name

path

Dataset path

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)

[Package assemblerr version 0.1.0 Index]