Learn R Programming

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

SimDesign (version 2.12)

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

6,019

Version

2.12

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Phil Chalmers

Last Published

July 7th, 2023

Functions in SimDesign (2.12)

RE

Compute the relative efficiency of multiple estimators
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
PBA

Probabilistic Bisection Algorithm
RSE

Compute the relative standard error ratio
RD

Compute the relative difference
MAE

Compute the mean absolute error
RMSE

Compute the (normalized) root mean square error
MSRSE

Compute the relative performance behavior of collections of standard errors
SimExtract

Function to extract extra information from SimDesign objects
SimAnova

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

Function to read in saved simulation results
SimDesign

Structure for Organizing Monte Carlo Simulation Designs
SimClean

Removes/cleans files and folders that have been saved
SimCheck

Check the status of the simulation's temporary results
SimFunctions

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

Empirical detection robustness method suggested by Serlin (2000)
SimShiny

Generate a basic Monte Carlo simulation GUI template
SimSolve

Optimized target quantities in simulation experiments (ProBABLI)
nc

Auto-named Concatenation of Vector or List
bias

Compute (relative/standardized) bias summary statistic
Summarise

Summarise simulated data using various population comparison statistics
aggregate_simulations

Collapse separate simulation files into a single result
rValeMaurelli

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

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

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

Create the simulation Design object
add_missing

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

Suppress function messages and Concatenate and Print (cat)
rinvWishart

Generate data with the inverse Wishart distribution
rtruncate

Generate a random set of values within a truncated range
rmvt

Generate data with the multivariate t distribution
rmvnorm

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

Generate integer values within specified range
rbind.SimDesign

Combine two separate SimDesign objects by row
reSummarise

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

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

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

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

Example simulation from Brown and Forsythe (1974)
Attach

Attach objects for easier reference
AnalyseIf

Perform a test that indicates whether a given Analyse() function should be executed
ECR

Compute empirical coverage rates
EDR

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

Compute congruence coefficient
Analyse

Compute estimates and statistics
Generate

Generate data
Bradley1978

Bradley's (1978) empirical robustness interval
BF_sim_alternative

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