

The Nonmem $error section is much shorter, it relies on the convention that ‘Y’ is the dependant variable ‘DV’ column from the data file and ‘F’ is the model prediction for the compartment specified by the ‘CMT’ column in the data file.In a fitting script these sections compute a likelihood, when simulating these sections produce a noisy measurement prediction. They both compare observations from the data file with model predictions. The PoPy PREDICTIONS section has the same of purpose as the Nonmem $ERROR section. PREDICTIONS : | p = s var = m + m * p ** 2 c ~ norm ( p, var )
#Nonmem advan13 code
and generate code that be executed by a numerical ordinary differential equation solver to compute compartment model amount/state variables at time points specified in the data file. They both accept procedural pseudocode, e.g. Otherwise the $DES and DERIVATIVES sections are quite similar.

Nonmem specifies the dosing time, amount and compartment (either bolus or infusion) entirely from the data file, however PoPy has Dosing Functions that have explicitly declared input parameters.Nonmem will allow you to use any previously specified variables as input, whereas PoPy restricts input variables to be of type c and m.Nonmem uses numbered DADT and A variables, whilst PoPy uses named d and s variables.The PoPy DERIVATIVES section has exactly the same of purpose as the Nonmem $DES section.
