Learn R Programming

SimDesign (version 2.8)

SimCheck: Check the status of the simulation's temporary results

Description

This function reads the temporary file saved by runSimulation by collapsing the information into a suitable (albeit temporary) object of class 'SimDesign'. This is useful when taking a quick-peak at how the early simulation results are performing (useful long running simulation results with many rows in the Design object). Returns a tibble-based data.frame object (tbl_df).

Usage

SimCheck(file)

Arguments

file

the temp file currently saving the simulation state. If missing the file is assumed to be in the current working directory, and start with the name 'SIMDESIGN-TEMPFILE'

Author

Phil Chalmers rphilip.chalmers@gmail.com

References

Chalmers, R. P., & Adkins, M. C. (2020). Writing Effective and Reliable Monte Carlo Simulations with the SimDesign Package. The Quantitative Methods for Psychology, 16(4), 248-280. tools:::Rd_expr_doi("10.20982/tqmp.16.4.p248")

Sigal, M. J., & Chalmers, R. P. (2016). Play it again: Teaching statistics with Monte Carlo simulation. Journal of Statistics Education, 24(3), 136-156. tools:::Rd_expr_doi("10.1080/10691898.2016.1246953")

See Also

runSimulation

Examples

Run this code
if (FALSE) {

# explicit
temp_results <- SimCheck(file = 'SIMDESIGN-TEMPFILE_mycomp.rds')
temp_results

# works if file is in the current working directory
temp_results <- SimCheck()
temp_results

}

Run the code above in your browser using DataLab