The Simulator: An Engine to Streamline Simulations

The Simulator: An Engine to Streamline Simulations
复制标题

模拟器:简化模拟的引擎

DOI:
--
复制
发表时间:
2016
期刊:
影响因子:
--
通讯作者:
J. Bien
J. Bien
中科院分区:
--
文献类型:
--
作者:
J. Bien

文献摘要

被引文献

相似文献

模拟器是一个R包,它通过创建一个可以在项目中轻松使用和重用的公共基础设施来简化执行模拟的过程。方法统计学家经常编写模拟程序,将他们的方法与已有的方法进行比较。在开发想法的过程中,有一种倾向是编写“快速而肮脏”的模拟来测试想法。这种快速原型的方法是有用的,但如果引入bug,有时会适得其反。使用模拟器可以在不牺牲“快”的情况下去除“脏”。编码是快速的,因为统计学家只关注那些特定于特定论文的模拟方面。用模拟器编写的代码简洁、可读性高,并且易于与他人共享。使用模拟器编写的模拟的模块化特性促进了代码的可重用性,从而节省了时间并促进了再现性。模拟器的语法使模拟代码易于人类阅读。使用模拟器的其他好处包括能够“介入”模拟并更改一个方面,而不必从头开始重新运行整个模拟,将并行计算直接集成到模拟中,以及以最小的努力快速生成图、表和报告的能力。
The simulator is an R package that streamlines the process of performing simulations by creating a common infrastructure that can be easily used and reused across projects. Methodological statisticians routinely write simulations to compare their methods to preexisting ones. While developing ideas, there is a temptation to write "quick and dirty" simulations to try out ideas. This approach of rapid prototyping is useful but can sometimes backfire if bugs are introduced. Using the simulator allows one to remove the "dirty" without sacrificing the "quick." Coding is quick because the statistician focuses exclusively on those aspects of the simulation that are specific to the particular paper being written. Code written with the simulator is succinct, highly readable, and easily shared with others. The modular nature of simulations written with the simulator promotes code reusability, which saves time and facilitates reproducibility. The syntax of the simulator leads to simulation code that is easily human-readable. Other benefits of using the simulator include the ability to "step in" to a simulation and change one aspect without having to rerun the entire simulation from scratch, the straightforward integration of parallel computing into simulations, and the ability to rapidly generate plots, tables, and reports with minimal effort.