Skip to content

Commit

Permalink
test files
Browse files Browse the repository at this point in the history
  • Loading branch information
philipdelff committed Oct 15, 2023
1 parent 6de3e2a commit a3bbc57
Show file tree
Hide file tree
Showing 9 changed files with 4,305 additions and 0 deletions.
3,345 changes: 3,345 additions & 0 deletions tests/testthat/testData/nonmem/xgxr030.lst

Large diffs are not rendered by default.

52 changes: 52 additions & 0 deletions tests/testthat/testData/nonmem/xgxr030.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
$PROBLEM Space in $INPUT - CYCLE =DROP

;; One variable is dropped, BBW is a new name.
;| Variables 15/20 |;
$INPUT ROW ID NOMTIME TIME EVID CMT AMT DV FLAG STUDY
BLQ CYCLE =DROP DOSE PART PROFDAY PROFTIME BBW eff0

$DATA ../data/xgxr1.csv IGNORE=@ IGNORE=(FLAG.NE.0)

$SUBROUTINE ADVAN4 TRANS4

$PK
KA=THETA(1)*EXP(ETA(1))
V2=THETA(2)*(BBW/75)*EXP(ETA(2))
CL=THETA(3)*EXP(ETA(3))
V3=THETA(4)*EXP(ETA(4))
Q=THETA(5)*EXP(ETA(5))

$ERROR
IPRED=F
IRES=DV-IPRED

IF (IPRED.GT.1) THEN
W = SQRT(IPRED**2*SIGMA(1,1)**2 + SIGMA(2,2)**2)
ELSE
W=1
ENDIF

IWRES=IRES/W
Y=F+F*ERR(1)+ERR(2)

;-----------------------INITIAL ESTIMATES---------------------------------
$THETA (0,0.9) ; POPKA
$THETA (0,4.2) ; POPCL
$THETA (0,3.6) ; POPV2
$THETA (0,5.81) ; POPV3
$THETA (0,3.44) ; POPQ

$OMEGA 0.1
$OMEGA 0.1
$OMEGA 0.1
$OMEGA 0 FIX
$OMEGA 0 FIX

$SIGMA .2
$SIGMA .2

$ESTIMATION METHOD=1 POSTHOC INTER MAXEVAL=9999 NSIG=2 SIGL=9
PRINT=10 NOABORT


$TABLE ROW KA V2 CL V3 Q FILE=xgxr030_res.txt
908 changes: 908 additions & 0 deletions tests/testthat/testData/nonmem/xgxr030_res.txt

Large diffs are not rendered by default.

Binary file added tests/testthat/testReference/NMreadExt_01.rds
Binary file not shown.
Binary file added tests/testthat/testReference/NMreadExt_02.rds
Binary file not shown.
Binary file added tests/testthat/testReference/NMreadExt_03.rds
Binary file not shown.
Binary file added tests/testthat/testReference/NMscanInput_11.rds
Binary file not shown.
Binary file added tests/testthat/testReference/NMscanInput_12.rds
Binary file not shown.
Binary file added tests/testthat/testReference/NMscanInput_13.rds
Binary file not shown.

0 comments on commit a3bbc57

Please sign in to comment.