arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2101.11857stat.COstat.OT
收藏

统计计算的最佳实践

Best Practices in Statistical Computing

Ricardo Sanchez, Beth Ann Griffin, Joseph Pane, Daniel McCaffrey

摘要:

世界正变得越来越复杂,无论是在我们可以获得的丰富数据来源方面,还是在我们可以对这些数据使用的统计和计算方法方面。这些因素导致我们的代码中出现错误的风险不断增加,我们的发现对数据准备和复杂统计和计算方法的执行的敏感性也不断增加。编码和数据错误的后果可能是巨大的。开放性(例如,向其他人提供数据代码)和透明度(例如,要求数据处理和代码遵循标准)是帮助减轻对可复制性和错误的担忧的两个关键解决方案。在本文中,我们描述了实施代码质量保证(QA)过程的关键步骤,以便研究人员在整个项目中改进他们的编码实践,以确保最终数据,代码,分析和最终结果的质量。这些步骤包括:㈠遵守遵循最佳做法的代码编写原则和风格,㈡有描述代码、工作流程和关键分析决定的明确书面文件; ㈢仔细的版本控制,㈣良好的数据管理; ㈣定期测试和审查。遵循所有这些步骤将大大提高研究的能力,以确保结果的准确性和重现性。代码QA的责任不仅落在研究人员身上,还落在机构、期刊和资助机构身上。

英文摘要:

The world is becoming increasingly complex, both in terms of the rich sources of data we have access to as well as in terms of the statistical and computational methods we can use on those data. These factors create an ever-increasing risk for errors in our code and sensitivity in our findings to data preparation and execution of complex statistical and computing methods. The consequences of coding and data mistakes can be substantial. Openness (e.g., providing others with data code) and transparency (e.g., requiring that data processing and code follow standards) are two key solutions to help alleviate concerns about replicability and errors. In this paper, we describe the key steps for implementing a code quality assurance (QA) process for researchers to follow to improve their coding practices throughout a project to assure the quality of the final data, code, analyses and ultimately the results. These steps include: (i) adherence to principles for code writing and style that follow best practices, (ii) clear written documentation that describes code, workflow and key analytic decisions; (iii) careful version control, (iv) good data management; and (iv) regular testing and review. Following all these steps will greatly improve the ability of a study to assure results are accurate and reproducible. The responsibility for code QA falls not only on individual researchers but institutions, journals, and funding agencies as well.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑