InsightRX / PKPDposterior

R package for full-Bayesian inference in the context of model-informed precision dosing
Other
3 stars 1 forks source link

RXR-875: add some diagnostics #2

Closed roninsightrx closed 2 years ago

roninsightrx commented 2 years ago

I added various diagnostics to the output object. Mostly model diagnostics but also some MCMC diagnostics. Also added a print function for the output object that shows the posterior parameter estimates and the posterior output variable compared to observed.

dominic-irx commented 2 years ago

Also question

par_table_prior <- post$draws_df %>% select(prior_CL, prior_V1, prior_Q, prior_V2) line 68 of test_thomson.R

I get an error here saying those columns don't exist. Am I missing something or is this a bug?

roninsightrx commented 2 years ago

Also question

par_table_prior <- post$draws_df %>% select(prior_CL, prior_V1, prior_Q, prior_V2) line 68 of test_thomson.R

I get an error here saying those columns don't exist. Am I missing something or is this a bug?

I don't get the error. We can look next week, but don't think it's related to this PR.