Learn R Programming

pharmr (version 1.4.0)

read_model_from_string: read_model_from_string

Description

Read model from the model code in a string

Usage

read_model_from_string(code)

Value

(Model) Pharmpy model object

Arguments

code

(str) Model code to read

See Also

read_model : Read model from file

read_model_from_database : Read model from database

Examples

Run this code
if (FALSE) {
s <- "$PROBLEM
$INPUT ID DV TIME
$DATA file$csv
$PRED
Y=THETA(1)+ETA(1)+ERR(1)
$THETA 1
$OMEGA 0.1
$SIGMA 1
$ESTIMATION METHOD=1"
read_model_from_string(s)
}

Run the code above in your browser using DataLab