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

View source: R/SimCheck.R

SimCheckR Documentation

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(s)

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. \Sexpr[results=rd]{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. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1080/10691898.2016.1246953")}

See Also

runSimulation

Examples

## Not run: 

# 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


## End(Not run)


philchalmers/SimDesign documentation built on April 29, 2024, 11:43 p.m.