Data, analysis code, and results from Dreyfuss et al. (2024).
- Click on the green icon "Clone or download" then "Download ZIP"
- Unzip
- Download and Install R: https://cran.r-project.org/
- Download and Install RStudio Desktop: https://rstudio.com/products/rstudio/download/
- On Windows, you should have Rtools.
- Open the main document here,
analyze_screendmt_dihome_replication.Rmd
, in R Studio - Install and load necessary R packages, including ours such as
DirectionalMaxPTest
.- If asked "Do you want to install from sources the package which needs compilation?" say "no".
- You can execute the R code in this file in blocks, or you can execute the entire file, including text, to produce an HTML file of the same name using the R Studio button "Knit". This will load our data from the
data
folder. It then applies our and other packages to our data to reproduce the analyses from the paper. - You can compare the results to those at https://github.com/jdreyf/screendmt-dihome-replication/tree/main/results.
- Open
simulations_screendmt.Rmd
in R Studio - Install and load necessary R packages, including ours such as
DirectionalMaxPTest
.- If asked "Do you want to install from sources the package which needs compilation?" say "no".
- You can execute the R code in this file in blocks, or you can execute the entire file, including text, to produce an HTML file of the same name using the R Studio button "Knit". However, this is very slow.
- You can see the simulation results for FDR by opening
pwr_fdr_arr_b1000_m1000_mu3.5_logpi1.RDS
or for FWER by openingpwr_fwer_arr_b1000_m1000_mu3.5_logpi1.RDS
in R studio. These are multidimensional arrays that store all simulation results. These reults are plotted in the simulations_screendmt.Rmd chunkggplot
in thePlots
section.