Learn R Programming

SimDesign

Structure for Organizing Monte Carlo Simulation Designs

Installation

To install the latest stable version of the package from CRAN, please use the following in your R console:

install.packages('SimDesign')

To install the Github version of the package with remotes, type the following (assuming you have already installed the remotes package from CRAN).

library('remotes')
install_github('philchalmers/SimDesign')

Getting started

For a description pertaining to the philosophy and general workflow of the package it is helpful to first read through the following: Chalmers, R. Philip, Adkins, Mark C. (2020) Writing Effective and Reliable Monte Carlo Simulations with the SimDesign Package, The Quantitative Methods for Psychology, 16(4), 248-280. doi: 10.20982/tqmp.16.4.p248

Coding examples found within this article range from relatively simple (e.g., a re-implementation of one of Hallgren's (2013) simulation study examples, as well as possible extensions to the simulation design) to more advanced real-world simulation experiments (e.g., Flora and Curran's (2004) simulation study). For additional information and instructions about how to use the package please refer to the examples in the associated Github wiki.

Copy Link

Version

Install

install.packages('SimDesign')

Monthly Downloads

9,905

Version

2.25

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Phil Chalmers

Last Published

March 31st, 2026

Functions in SimDesign (2.25)

RE

Compute the relative efficiency of multiple estimators
RD

Compute the relative difference
PBA

Probabilistic Bisection Algorithm
RSE

Compute the relative standard error ratio
RAB

Compute the relative absolute bias of multiple estimators
IRMSE

Compute the integrated root mean-square error
GenerateIf

Perform a test that indicates whether a given Generate() function should be executed
MAE

Compute the mean absolute error
MSRSE

Compute the relative performance behavior of collections of standard errors
SimCheck

Check for missing files in array simulations
RobbinsMonro

Robbins-Monro (1951) stochastic root-finding algorithm
SimExtract

Extract extra information from SimDesign objects
SimErrors

Extract Simulation Errors
Serlin2000

Empirical detection robustness method suggested by Serlin (2000)
SimAnova

Decompose the simulation into ANOVA-based effects
SimClean

Removes/cleans files and folders that have been saved
SimDesign

Structure for Organizing Monte Carlo Simulation Designs
SimCollect

Collapse separate simulation files into a single result
SimResults

Read in saved simulation results
addMissing

Add missing values to a vector given a MCAR, MAR, or MNAR scheme
Summarise

Summarise simulated data using various population comparison statistics
SimShiny

Generate a basic Monte Carlo simulation GUI template
SFA

Surrogate Function Approximation via the Generalized Linear Model
bootPredict

Compute prediction estimates for the replication size using bootstrap MSE estimates
bias

Compute (relative/standardized) bias summary statistic
SimWarnings

Extract Simulation Warnings
SimSolve

One Dimensional Root (Zero) Finding in Simulation Experiments
SimRead

Read simulation files
SimFunctions

Template-based generation of the Generate-Analyse-Summarise functions
getArrayID

Get job array ID (e.g., from SLURM or other HPC array distributions)
genSeeds

Generate random seeds
manageMessages

Increase the intensity or suppress the output of an observed message
listAvailableNotifiers

List All Available Notifiers
colVars

Form Column Standard Deviation and Variances
clusterSetRNGSubStream

Set RNG sub-stream for Pierre L'Ecuyer's RngStreams
manageWarnings

Manage specific warning messages
new_PushbulletNotifier

Create a Pushbullet Notifier
new_TelegramNotifier

Create a Telegram Notifier
createDesign

Create the simulation design object
descript

Compute univariate descriptive statistics
expandReplications

Expand the replications to match expandDesign
expandDesign

Expand the simulation design object for array computing
rValeMaurelli

Generate non-normal data with Vale & Maurelli's (1983) method
rHeadrick

Generate non-normal data with Headrick's (2002) method
nc

Auto-named Concatenation of Vector or List
notify.PushbulletNotifier

S3 method to send notifications via Pushbullet
quiet

Suppress verbose function messages
rmgh

Generate data with the multivariate g-and-h distribution
rejectionSampling

Rejection sampling (i.e., accept-reject method)
rinvWishart

Generate data with the inverse Wishart distribution
reSummarise

Run a summarise step for results that have been saved to the hard drive
rbind.SimDesign

Combine two separate SimDesign objects by row
reexports

Objects exported from other packages
notify.TelegramNotifier

S3 method to send notifications through the Telegram API.
notify

Send a simulation notification
rmvt

Generate data with the multivariate t distribution
rtruncate

Generate a random set of values within a truncated range
rint

Generate integer values within specified range
rmvnorm

Generate data with the multivariate normal (i.e., Gaussian) distribution
runArraySimulation

Run a Monte Carlo simulation using array job submissions per condition
timeFormater

Format time string to suitable numeric output
runSimulation

Run a Monte Carlo simulation given conditions and simulation functions