Nowadays you can just specify CWRES in the $TABLE statement of NONMEM to
get those residuals, circumventing the issue you ran into. See the
nonmem75 pdf for further residuals that are available such as NPDE. (if
you really want to investigate what goes wrong, go into the NM_run1
folder and look at the code that PsN has generated for you in psn.mod)
For all on the nm list: best wishes for 2024!
Best regards,
Jeroen
http://pd-value.com
jer...@pd-value.com
@PD_value
+31 6 23118438
-- More value out of your data!
On 08-01-2024 14:12, jacksonan1...@gmail.com wrote:
Hello:
I am running a model using Perl Speaks Nonmem which runs ok and has
good shrinkage. However, when I run the command with (-CWRES) I get
the following error.
AN ERROR WAS FOUND IN THE CONTROL STATEMENTS.
300 VERBATIM "LAST MUST BE AFTER LAST ABBREVIATED CODE
I searched the archives but couldn't find an answer. I have my error
block code listed. My suspicion is that may be where the problem may
exist since the model does run ok.
$ERROR
IF(CMT.EQ.3) IPRED=A(3)/S3
W=SQRT((THETA(13)*F)**2+THETA(14)**2); equation var 2 proost1
CP=IPRED
IRES=DV-IPRED
IWRES=IRES/W
Y=CP +CP*ERR(1)*W + ERR(2)