Skip to content

Commit

Permalink
Merge pull request #1248 from metrumresearchgroup/fix-evtools-model
Browse files Browse the repository at this point in the history
Slight refactor of REG 3
  • Loading branch information
kylebaron authored Oct 15, 2024
2 parents 5abecfb + 54563f0 commit a231402
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions inst/models/evtools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ REG = 1, Until = 24*8

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

$PREAMBLE
reg.init(self);

$PK
if(NEWIND < 1) reg.init(self);
if(REG==3 && NEWIND <= 1) reg.init(self);

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

if(REG==3) {
reg.init(self);
reg.amt(Amt);
reg.cmt(1);
reg.rate(Rate);
Expand Down

0 comments on commit a231402

Please sign in to comment.