Skip to content

Instantly share code, notes, and snippets.

@shanmdphd
Last active February 17, 2023 16:17
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shanmdphd/2856c65dc94335eeb738c11f49f2b59c to your computer and use it in GitHub Desktop.
Save shanmdphd/2856c65dc94335eeb738c11f49f2b59c to your computer and use it in GitHub Desktop.
Minimal reproducible example: proper input of the `dose` argument in tblNCA function in NonCompart R package
library(dplyr)
library(NonCompart)
tblNCA(Theoph,
dose = Theoph %>%
mutate(actual_dose = Wt*Dose) %>%
select(Subject, actual_dose) %>%
unique() %>%
.$actual_dose)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment