ronkeizer / vpc

R library to create visual predictive checks (VPC)
Other
36 stars 20 forks source link

References for simulation of VPC data #95

Closed adcascone closed 3 months ago

adcascone commented 6 months ago

Hello,

Would it be possible to provide a reference for the way in which data are simulated via the sim_data() function? It would also be helpful to provide an example for the way in which this function works, if possible. In the reference manual (pg. 17), this function's arguments have "See example," but there is no example included.

image

Thanks, Arianna

roninsightrx commented 3 months ago

hi Arianna, The sim_data functionality is just a general-purpose simulation function where the user brings their own simulation function, parameter vector, and between-subject variability (omega_mat). To be honest, I have not used it myself in quite some time, as I commonly rely on simulations directly from PKPDsim, NONMEM, or nlmixr2. But you're right, it should have a better description and an example. Will add that soon. Thanks for highlighting this omission!

roninsightrx commented 3 months ago

Actually, on second thought, I am going to remove the sim_data() functionality altogether. Since this function is just a very crude simulation wrapper, it is not useful to have it in the VPC package. I'd like to adhere to the philosophy that a package should do very well what it really needs to do, and not do other stuff in a mediocre way. As you know there are very good packages available for simulation (PKPDsim, mrgsolve, rxode etc), so there is no need to have any of that available natively in vpc. It would also cost time to support a sim_data() functionality properly in this package. Thanks again!

adcascone commented 3 months ago

Thanks for your thoughtful replies!

adcascone commented 1 month ago

Hi again Ron,

Are there plans to update the version of the vpc package that's available on CRAN to reflect the changes that have been implemented in this package since January 2021?

Thanks for your time, Arianna