Skip to content

Commit a231402

Browse files
authored
Merge pull request #1248 from metrumresearchgroup/fix-evtools-model
Slight refactor of REG 3
2 parents 5abecfb + 54563f0 commit a231402

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

inst/models/evtools.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@ REG = 1, Until = 24*8
2121

2222
$PKMODEL cmt = "DEPOT CENT", depot = TRUE
2323

24-
$PREAMBLE
25-
reg.init(self);
26-
2724
$PK
28-
if(NEWIND < 1) reg.init(self);
25+
if(REG==3 && NEWIND <= 1) reg.init(self);
2926

3027
double CL = exp(log(TVCL) + 0.75*log(WT/70) + ETA(1));
3128
double V = exp(log(TVV) + log(WT/70) + ETA(2));
@@ -53,7 +50,6 @@ if(REG==2) {
5350
}
5451

5552
if(REG==3) {
56-
reg.init(self);
5753
reg.amt(Amt);
5854
reg.cmt(1);
5955
reg.rate(Rate);

0 commit comments

Comments
 (0)