Skip to content

Instantly share code, notes, and snippets.

View shanmdphd's full-sized avatar
🎤
share for life

Sungpil Han shanmdphd

🎤
share for life
View GitHub Profile
@shanmdphd
shanmdphd / MRE-dose-tblNCA.R
Last active February 17, 2023 16:17
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)