We used R studio to reprocude the results and followed the steps mentioned at the webpage:
Installation
Install rStudio
Clone this repository git clone https://github.com/ScHARR-PHEDS/DoPE_Public.git
Open DoPE_Public.Rproj in rStudio
Run install.packages("renv") in the R terminal
Run renv::restore() in the R terminal
Running the code
Source:
R\src1_data_proc.R Purpose: To clean data ready for analysis Outputs: a single .csv file.
R\src2_analysis.R Purpose: Undertake statistical analysis
Outputs: Regression tables and visuals
Stargazer gave the usual error message and we and tried to use the workaround at https://gist.github.com/alexeyknorre/b0780836f4cec04d41a863a683f91b53 but that did not work. However, the stargazer function worked when we defined the df outside of it.
The remainder of the code worked well but we got different numbers in the descriptions statistics and regression outputs than presented in the paper. For example, number of finishers was 34,753 instead of 32,844.
We were very familiar with R studio and the methods used in the paper except with the "renv"-package.
Nothing
R
When installing the packages with "renv," the "terra"-package led to an error. We solved this problem by deleting it from "renv.lock".
We also tried to reproduce the findings in MacOS 12.6, but there the installation procedure was even more difficult. The problem was solved by building the project anew and not cloning it from Github. (Which was easy.) The other problems were the same as for Windows except there was no error message shown in stargazer.
R is an amazing software to reproduce the results. The codes were easy to understand.
The documentation was good enough. Maybe one could describe how "renv" works, but one can also easily google that information.
The documentation was easy to understand and follow.
Licence for data was only mentioned on the website https://wellcomeopenresearch.org/articles/5-9/v2 but not on Github.
(1) On the website https://wellcomeopenresearch.org/articles/5-9: The link in "Software availability: Source code available from: https://github.com/ bitowaqr/DoPE" does not work, because there is a space in it.
(2) On https://github.com/ScHARR-PHEDS/DoPE_Public: It is said: "Run install.packages("renv") in the R terminal" However, that's a command that you run in the console.
(3) Warning for future: library(rgdal) gives the warning message "Please note that rgdal will be retired during 2023, plan transition to sf/stars/terra functions using GDAL and PROJ"