README

Source code for manuscript "On the usage of randomized p-values in the Schweder-Spjotvoll estimator"
by A. Hoang and T. Dickhaus.

For questions, comments or remarks about the code please contact A. Hoang (anhtuan.hoang at uni-bremen.de).

The code has been written using R-3.6.1 (2019-07-05) with package version latex2exp_0.4.0,
and MATLAB R2019a (platform: x86_64-w64-mingw32/x64, 64-bit). 

We use relative pathing, relative to the current file. 

We generate Figures 1, 5, 6 in the R script R_Script.R, and Figures 2, 3, 4, 7, 8, 9 in the MATLAB script 
MATLAB_Script.m. Both scripts are subdivided for the respective figures and can be run independently. 
Definition / inclusion of functions and packages are at the beginning of the scripts. The figures are
saved as pdf documents in the "/results" folders. Both scripts complete in less than 5 minutes.

The necessary functions are included in the subfolders "/functions" and are called up automatically
on execution of the main scripts.