Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jasmine Hughes <[email protected]>
  • Loading branch information
roninsightrx and jasmineirx authored Mar 7, 2024
1 parent d21fd03 commit 3fc0820
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/testthat/test_calc_auc_analytic.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ if(run_ref) {
regimen = reg,
covariates = covs,
t_obs = t_obs
) %>%
dplyr::filter(comp == attr(mod, "size")) %>%
dplyr::mutate(auc = round(c(0, diff(y)), 3)) %>%
select(t, auc)
)
res <- res[res$comp == attr(mod, "size"))
res$auc <- round(c(0, diff(res$y)), 3)
res <- res[, c("t", "auc")]
par_eff <- PKPDsim::calculate_parameters(mod, parameters = par, covariates = covs)
parameters = list(CL = par_eff$CLi, V = par_eff$Vi, Q = par_eff$Qi, V2 = par_eff$V2i)
} else {
Expand Down

0 comments on commit 3fc0820

Please sign in to comment.