Learn R Programming

simhelpers (version 0.3.1)

Helper Functions for Simulation Studies

Description

Calculates performance criteria measures and associated Monte Carlo standard errors for simulation results. Includes functions to help run simulation studies, following a general simulation workflow that closely aligns with the approach described by Morris, White, and Crowther (2019) . Also includes functions for calculating bootstrap confidence intervals (including normal, basic, studentized, percentile, bias-corrected, and bias-corrected-and-accelerated) with tidy output, as well as for extrapolating confidence interval coverage rates and hypothesis test rejection rates following techniques suggested by Boos and Zhang (2000) .

Copy Link

Version

Install

install.packages('simhelpers')

Monthly Downloads

268

Version

0.3.1

License

GPL-3

Maintainer

Megha Joshi

Last Published

January 10th, 2025

Functions in simhelpers (0.3.1)

evaluate_by_row

Evaluate a simulation function on each row of a data frame or tibble
create_skeleton

Open a simulation skeleton
extrapolate_rejection

Extrapolate coverage and width using sub-sampled bootstrap confidence intervals.
welch_res

Welch t-test simulation results
bootstrap_pvals

Calculate one or multiple bootstrap p-values
bundle_sim

Bundle functions into a simulation driver function
bootstrap_CIs

Calculate one or multiple bootstrap confidence intervals
calc_rejection

Calculate rejection rate and MCSE
calc_relative_var

Calculate jack-knife Monte Carlo SE for variance estimators
calc_coverage

Calculate confidence interval coverage, width and MCSE
calc_relative

Calculate relative performance criteria and MCSE
Tipton_Pusto

Results for Figure 2 of Tipton & Pustejovsky (2015)
calc_absolute

Calculate absolute performance criteria and MCSE
extrapolate_coverage

Extrapolate coverage and width using sub-sampled bootstrap confidence intervals.
repeat_and_stack

Repeat an expression multiple times and (optionally) stack the results.
alpha_res

Cronbach's alpha simulation results
t_res

t-test simulation results