read_model_from_string {pharmr}R Documentation

read_model_from_string

Description

Read model from the model code in a string

Usage

read_model_from_string(code)

Arguments

code

(str) Model code to read

Value

(Model) Pharmpy model object

See Also

read_model : Read model from file

read_model_from_database : Read model from database

Examples

## Not run: 
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)

## End(Not run)

[Package pharmr version 1.0.1 Index]