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

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

m <- model() + input_variable("dose") + prm_log_normal("emax") + prm_log_normal("ed50") + obs_additive(eff~emax*dose/(ed50+dose)) render(m)
#> $PROBLEM #> $INPUT DOSE ID DV #> $DATA data.csv IGNORE=@ #> $PRED #> EMAX = THETA(1) * EXP(ETA(1)) #> ED50 = THETA(2) * EXP(ETA(2)) #> EFF = EMAX * DOSE/(ED50 + DOSE) #> Y = EFF + EPS(1) #> $ESTIMATION METHOD=COND MAXEVAL=999999 #> $THETA (0, 1, Inf) ; POP_EMAX #> $THETA (0, 1, Inf) ; POP_ED50 #> $OMEGA 0.1 ; IIV_EMAX #> $OMEGA 0.1 ; IIV_ED50 #> $SIGMA 1; RUV_ADD