[Experimental]

This is designed to be used in situations where you don't want to rerun NONMEM, but need a variable defined in the control file. This will parse the $PK/`$PRED`` and compute it as an additional row in R. Safest way is to just rerun the model with the variable in $TABLE, but this is for those who are too time constrained. It is advisable to QC the output.

append_nonmem_var(output_table, r, var)

Arguments

output_table

Output from output_table().

r

An nm object.

var

Character. Name of variable to extract (needs to be defined in $PK/$PRED).

Value

A modified version of output_table with addition var column.