Skip to content

Commit f0d70e1

Browse files
committed
update function description
1 parent f54fa82 commit f0d70e1

5 files changed

Lines changed: 16 additions & 6 deletions

File tree

R/regimen_to_nm.R

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#' Convert PKPDsim regimen to NONMEM table (doses only)
22
#'
3+
#' Note: when bioavailability is used for insusions: NONMEM behaves differently from PKPDsim and Monolix,
4+
#' in that rates are not automatically recomputed for infusions where bioavailabiliy also applies.
5+
#' In PKPDsim/Monolix, for a bioavailability of 50%, an AMT of 100 mg and rate of 100mg/hr would be recalculated
6+
#' to 50 mg and 50 mg/hour, respectively, to keep the infusion length the same. This is not the case
7+
#' in NONMEM. Therefore, the easiest way to work around this is for the user to compute the rate manually
8+
#' in NONMEM using custom code. Therefore, we set the `RATE` column to `-1` for such infusions.
9+
#'
310
#' @param reg `PKPDsim` regimen, created using `new_regimen()` function
411
#' @param dose_cmt dosing compartment, if not specified in `reg` object
512
#' @param n_ind repeat for `n_ind` subjects
@@ -43,10 +50,8 @@ regimen_to_nm <- function(
4350
}
4451
bioav_dose[is.na(bioav_dose)] <- 1
4552
}
46-
# dat$RATE <- dat$RATE * bioav_dose
4753
dat$RATE <- -1
4854
message("Setting rate to be handled in NONMEM model using R parameters.")
49-
# message("Recalculating infusion rates to reflect bioavailability for infusion.")
5055
}
5156
}
5257
if(!is.null(t_obs)) {

man/adherence_binomial.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/adherence_markov.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/new_adherence.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/regimen_to_nm.Rd

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)