ESQlabs R Resources
  1. Code template
  2. Advanced Snippets
  • Welcome
  • Good Practices
  • Guides
    • Style Guide
    • How to ask for help in R
    • Git and GitHub for collaboration
    • Advanced Topics
  • Code template
    • Get started with OSP Suite in R
    • Advanced Snippets
  • Troubleshooting
  • External Resources

On this page

  • Virtual population
  • Edit this page
  • View source
  • Report an issue
  1. Code template
  2. Advanced Snippets

Advanced Snippets

Submit new snippets

Got a clever R trick or elegant solution that made your day easier? Weโ€™d love to see it! ๐Ÿš€

Share your favorite code snippets, helper functions, or workflow tips with the ESQlabs community. Whether itโ€™s a data wrangling shortcut, a plotting hack, or a package discovery that changed your workflow - every contribution helps us all code smarter.

Submit your snippet here โ†’

Virtual population

Informations

  • Submitted by: Laura Villain
  • Date: 11/08/2025
  • Description: This code snippets simulates a virtual population of patients based on estimated parameters or given distribution, then simulate output of interests of that population.

Input

  • A pkml file
  • Either a list of estimated parameters or distributions of parameters to simulate from - The number of patients
  • The output path of interest

Outputs

  • A list of simulated patients with their parameters and results
  • A plot of the output of interest

Virtual Population Plot
Back to top
Get started with OSP Suite in R
Troubleshooting

Copyright ESQlabs GmbH 2025.

 
  • Edit this page
  • View source
  • Report an issue