Learn R Programming

⚠️There's a newer version (2.19.2) of this package.Take me there.

SimDesign (version 2.6)

Structure for Organizing Monte Carlo Simulation Designs

Description

Provides tools to safely and efficiently organize and execute Monte Carlo simulation experiments in R. The package controls the structure and back-end of Monte Carlo simulation experiments by utilizing a generate-analyse-summarise workflow. The workflow safeguards against common simulation coding issues, such as automatically re-simulating non-convergent results, prevents inadvertently overwriting simulation files, catches error and warning messages during execution, and implicitly supports parallel processing. For a pedagogical introduction to the package see Sigal and Chalmers (2016) . For a more in-depth overview of the package and its design philosophy see Chalmers and Adkins (2020) .

Copy Link

Version

Install

install.packages('SimDesign')

Monthly Downloads

8,027

Version

2.6

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Phil Chalmers

Last Published

June 28th, 2021

Functions in SimDesign (2.6)

BF_sim_alternative

(Alternative) Example simulation from Brown and Forsythe (1974)
BF_sim

Example simulation from Brown and Forsythe (1974)
ECR

Compute empirical coverage rates
CC

Compute congruence coefficient
RE

Compute the relative efficiency of multiple estimators
Attach

Attach objects for easier reference
RD

Compute the relative difference
Analyse

Compute estimates and statistics
SimCheck

Check the status of the simulation's temporary results
SimAnova

Function for decomposing the simulation into ANOVA-based effect sizes
RAB

Compute the relative absolute bias of multiple estimators
MSRSE

Compute the relative performance behavior of collections of standard errors
MAE

Compute the mean absolute error
IRMSE

Compute the integrated root mean-square error
Serlin2000

Empirical detection robustness method suggested by Serlin (2000)
RMSE

Compute the (normalized) root mean square error
aggregate_simulations

Collapse separate simulation files into a single result
bias

Compute (relative/standardized) bias summary statistic
EDR

Compute the empirical detection rate for Type I errors and Power
Generate

Generate data
quiet

Suppress function messages and Concatenate and Print (cat)
rHeadrick

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

Function to read in saved simulation results
SimClean

Removes/cleans files and folders that have been saved
SimFunctions

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

Function to extract extra information from SimDesign objects
boot_predict

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

Create the simulation Design object
reSummarise

Run a summarise step for results that have been saved to the hard drive
rejectionSampling

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

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

Generate a basic Monte Carlo simulation GUI template
rmgh

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

Generate data with the inverse Wishart distribution
rint

Generate integer values within specified range
rbind.SimDesign

Combine two separate SimDesign objects by row
Summarise

Summarise simulated data using various population comparison statistics
add_missing

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

Structure for Organizing Monte Carlo Simulation Designs
rmvnorm

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

Generate data with the multivariate t distribution
rtruncate

Generate a random set of values within a truncated range
runSimulation

Run a Monte Carlo simulation given a data.frame of conditions and simulation functions