feature to simulate with uncertainty
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()?
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/
thanks for the links, Samer. I can't locate mrgsolve::simpar though... is that an experimental feature?
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
Not on roadmap for immediate future.