计算机科学
蒙特卡罗方法
R包
稳健性(进化)
编码(社会科学)
程序设计语言
数学
统计
基因
生物化学
化学
作者
Robert Philip Chalmers,Mark Christopher Adkins
标识
DOI:10.20982/tqmp.16.4.p248
摘要
The purpose of this tutorial is to discuss and demonstrate how to write safe, effective, and intuitive computer code for Monte Carlo simulation experiments containing one or more simulation factors.Throughout this tutorial the SimDesign package (Chalmers, 2020), available within the R programming environment, will be adopted due to its ability to accommodate a number of desirable execution features.The article begins by discussing a selection of attractive coding strategies that should be present in Monte Carlo simulation experiments, showcases how the SimDesign package can satisfy many of these desirable strategies, and provides a worked mediation analysis simulation example to demonstrate the implementation of these features.To demonstrate how the package can be used for real-world experiments, the simulation explored by Flora and Curran (2004) pertaining to a confirmatory factor analysis robustness study with ordinal response data is also presented and discussed.
科研通智能强力驱动
Strongly Powered by AbleSci AI