# Critical Values Robust to P-hacking: Code and Data
This repository contains the code and data accompanying the paper "Critical Values Robust to P-hacking", written by [Adam McCloskey](https://adammccloskey.com) and [Pascal Michaillat](https://pascalmichaillat.org), and posted on [arXiv](https://arxiv.org/abs/2005.04141v7) in July 2023.
## Paper webpage
The paper is available at https://pascalmichaillat.org/12/.
## Code
The results in the paper are produced with MATLAB code. The code is stored in the folder `code`.
The figures in the paper are produced by the following scripts:
+ `figure1A.m` – Produce figure 1A
+ `figure1B.m` - Produce figure 1B
+ `figure2A.m` - Produce figure 2A
+ `figure2B.m` - Produce figure 2B
+ `figure3A.m` - Produce figure 3A
+ `figure3B.m` - Produce figure 3B
Each script produces a figure in a MATLAB window, saves a copy of the figure in PDF format, and saves a copy of the data plotted in the figure in an Excel file.
The figure-producing scripts call the helper script `formatPlot.m` to customize the appearance of plots.
## Figures
The 6 figures produced by the code are stored in the folder `figures`.
+ The figures are saved as PDF files and stored in the subfolder `pdf`. Any PDF file titled `figureX.pdf` corresponds to figure X in the paper.
+ The data underlying the figures are saved as Excel files and stored in the subfolder `xlsx`. Any Excel file titled `figureX.xlsx` contains the data plotted in figure X in the paper.
## Software
The results were obtained on a Mac running macOS Ventura 13.2 with MATLAB R2022b and Microsoft Excel 16.71.
## License
The content of this repository is licensed under the terms of the MIT License.
没有合适的资源?快使用搜索试试~ 我知道了~
“对P-hacking鲁棒的临界值”一文的matlab代码和数据.zip
共20个文件
m:7个
pdf:6个
xlsx:6个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 186 浏览量
2024-02-19
00:24:37
上传
评论
收藏 91KB ZIP 举报
温馨提示
1.版本:matlab2014/2019a/2021a 2.附赠案例数据可直接运行matlab程序。 3.代码特点:参数化编程、参数可方便更改、代码编程思路清晰、注释明细。 4.适用对象:计算机,电子信息工程、数学等专业的大学生课程设计、期末大作业和毕业设计。
资源推荐
资源详情
资源评论
收起资源包目录
“对P-hacking鲁棒的临界值”一文的matlab代码和数据.zip (20个子文件)
“对P-hacking鲁棒的临界值”一文的matlab代码和数据
p-hacking-main
figures
pdf
figure2A.pdf 4KB
figure3B.pdf 5KB
figure1A.pdf 4KB
figure1B.pdf 4KB
figure2B.pdf 4KB
figure3A.pdf 4KB
xlsx
figure1A.xlsx 11KB
figure1B.xlsx 11KB
figure3B.xlsx 12KB
figure3A.xlsx 11KB
figure2A.xlsx 11KB
figure2B.xlsx 11KB
README.md 2KB
code
figure2B.m 2KB
figure1A.m 2KB
formatPlot.m 3KB
figure3A.m 2KB
figure2A.m 2KB
figure3B.m 2KB
figure1B.m 2KB
共 20 条
- 1
资源评论
matlab科研助手
- 粉丝: 1w+
- 资源: 1994
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功