Learn R Programming

assemblerr (version 0.1.1)

input_variable: 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

Value

A building block of type 'input_variable'

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.

Examples

Run this code
# NOT RUN {
m <- model() +
    input_variable("dose") +
    prm_log_normal("emax") +
    prm_log_normal("ed50") +
    obs_additive(eff~emax*dose/(ed50+dose))
render(m)
# }

Run the code above in your browser using DataLab