read_model_from_string: read_model_from_string

View source: R/functions_wrapper.R

read_model_from_stringR 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)

pharmpy/pharmr documentation built on Feb. 15, 2025, 3:22 a.m.