Tip # 4 -
Coding Time After Dose (TAD) with ADDL Dosing:
How would you code to get the correct TAD after ADDL doses?
A sample control stream, data file and hint were given.
[Hint: may require an INFN subroutine]
One solution, in fact the only one received, from an anonymous
scholar used a replacement INFN Fortran subroutine named TAD.for.
The concepts used were:
add an additional column (named TAD) to the datafile filled
with zeros as placeholders.
code a solution for calculating TAD in TAD.for using modulus
arithmetic:
C TAD.FOR (INFN ROUTINE FOR COMPUTING TIME AFTER DOSE)
C wjb 28feb2002 GloboMax LLC
C data items: C ID TIME DV AMT WT AGE CRCL SMK ADDL II EVID
TAD
C DATREC(3)=TIME DATA ITEM
C DATREC(10)=ADDL DATA ITEM
C DATREC(11)=II DATA ITEM
C DATREC(12)=EVID DATA ITEM
C DATREC(13)=TAD DATA ITEM
C
modify the control stream to use the modified data file
and call the new INFN routine:
$PROB RUN# 708 nonmem challenge #1 solution wjb 28FEB2000
$INPUT C ID TIME DV AMT WT AGE CRCL SMK ADDL II EVID TAD
$DATA 706.csv IGNORE=C
$SUBROUTINE ADVAN2 TRANS2 INFN=TAD.FOR
;no code for TAD in control stream needed
[Note: Verify that this code or any other code you receive from
an outside source works with YOUR DATA.]