PKPDsim icon indicating copy to clipboard operation
PKPDsim copied to clipboard

feature to simulate with uncertainty

Open ronkeizer opened this issue 7 years ago • 3 comments

perhaps best to write a separate function to handle the looping over drawn parameter sets, rather than have an additional argument to PKPDsim? sim_uncertainty()?

ronkeizer avatar May 24 '18 17:05 ronkeizer

indeed, as the uncertainty source can come from various sources: varcov or from bootstrap or for likelihood profiling or SIR or bayesian posteriors or ... and if the user has not coded the model in a way to respect constraints/parameter ordering we can easily simulate illegal parameters from a var cov matrix. e.g. mrgsolve::simpar

ggfan can also become handy to visualize uncertainty https://cran.r-project.org/web/packages/ggfan/vignettes/geom_fan.html or this: http://www.nicebread.de/visually-weighted-watercolor-plots-new-variants-please-vote/

smouksassi avatar May 24 '18 17:05 smouksassi

thanks for the links, Samer. I can't locate mrgsolve::simpar though... is that an experimental feature?

ronkeizer avatar May 24 '18 19:05 ronkeizer

sorry while some mrgsolve examples use simpar it was my error it is actually a metrumrg function not an mrgsovle one

https://github.com/metrumresearchgroup/metrumrg/blob/master/R/simpar.R#L1

smouksassi avatar May 24 '18 19:05 smouksassi

Not on roadmap for immediate future.

roninsightrx avatar Feb 20 '25 23:02 roninsightrx