pkgdown/in-header.html

Skip to contents

The examples aim at sharing used code to handle simulation-based workflows with NMsim. When building your own code, please also see the manuals of key functions, ?NMsim being an obvious example.

NMsim - Seamless NONMEM Simulation Platform in R is the place to start. It contains basic information to get you started and demonstrates the most common types of simulations.

You can let your interests guide your next topic. Use Requirements and Configuration as needed. If you have not yet run your first successful NMsim() calls, it’s worth a read, at least half-through.

For simulation with variability on parameters ($THETA’s, $OMEGA’s, and $SIGMA’s), currently most up to date is NMsim - Simulation-Based Forest Plots with NMsim

Also, see recent Publications.

NMsim - Seamless NONMEM Simulation Platform in R

Philip Delff

  • Configuration
  • Simulation of typical subjects and new subjects
  • Creation of Simulation data sets
  • Simulate multiple models
  • Reuse Emperical Bayes’ Estimates (known ETAs)
  • Read previously generated simulations

Data Set Creation with NMsim

Philip Delff

  • Create Dosing Events
  • Add Sampling Events
  • Add Time After Previous Dose and Related Information
  • Multiple Endpoints (e.g. parent and metabolite)
  • Cohort-Dependent or Individual Sampling Schemes

VPC Simulations

Philip Delff

  • Reuse Estimation Data for Simulation
  • Plotting using tidyvpc
  • Use a different input data set: Change the ACCEPT/IGNORE Statements
  • Use a different input data set: Manually Subset Data

Simulation-Based Forest Plots with NMsim

Philip Delff, Boris Grinshpun

  • Generation of Simulation Input Data
  • Define Covariates to Analyze
  • Simulation With Parameter Uncertainty
  • Post processing
  • Plotting
  • Comparison of Different Simulation Methods
  • Post-Processing Step-By-Step

Simulation with Modifications to Parameters and Model Code

Philip Delff, Simone Cassani

  • Control whether and how to update parameter values according to the final model parameter estimates using the inits argument.
  • Modify model parameter values ($THETA, $OMEGA and SIGMA) to specify values using the inits argument
  • Use the modify argument to do custom manipulations of any parts of the control stream before simulation.
  • Modify data exclusions/inclusions ($IGNORE/$ACCEPT) using the filters argument.
  • Adjust $SIZES variables using the sizes argument.

Requirements and Configuration

Philip Delff

  • Specify the path to the Nonmem executable (path.nonmem).
  • Set default values for path.nonmem and output directories.

Examples waiting for updates

NMsim and speed

Philip Delff