Skip to content

Simulations #232

Answered by mnneely
ChrisKonig asked this question in Q&A
Discussion options

You must be logged in to vote

Just add each "patient" template to the same data.csv file. First patient becomes subject ID 1, next one is ID 2, etc. It looks just like a data file for a popPK study, except all the OUT values are replaced by simulated ones. That's why I put -1 as the value for OUT in simulation templates. Of course, there are probably fewer observation times in a simulation template than a true data file because predInt can fill in the gaps.

If you want to use the posterior values to simulate, then make sure you have matching IDs and the number of subjects in the template as you did in the pop model. Then say usePost = TRUE when you simulate. This uses the Bayesian posterior distribution of subject 1 i…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ChrisKonig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants