Software Open Access
Gugushvili, Shota;
Mariucci, Ester;
van der Meulen, Frank
This Julia code is accompanying the paper Decompounding discrete distributions: a non-parametric Bayesian approach by Shota Gugushvili, Ester Mariucci and Frank van der Meulen. The following datasets are analysed (for details see the paper):
All datasets are contained in the folder named 'data'.
To compute Bayesian estimates, as well as the truncated estimate from Buchmann and Grubel (2004), put all the files (the files in the scr folder and the files in the data folder) into one directory and create a subdirectory named 'out'. Next run the script 'cpp_discr.jl'. Within this file, one can choose the dataset to be analysed by setting 'data_choice' to any of the scenarios available (which are "generated1", "generated2", "testdata_A1", "testdata_A2", "testdata_A3", "testdata_B1", "testdata_B2", "testdata_C", "horsekicks", "plantpopulation"; details are seen in 'setdata.jl').
The code for the Monte-Carlo study in Section 3.3 of the paper is contained in 'cpp_discr_mc.jl'.
Julia dependencies: RCall, Distributions, DataFrames, DelimitedFiles, SpecialFunctions, TimerOutputs, Random
Name | Size | |
---|---|---|
Bdd-master.zip
md5:2d5fd60992dfdd21a9a3d26c4d1383ad |
16.1 kB | Download |
All versions | This version | |
---|---|---|
Views | 202 | 57 |
Downloads | 66 | 9 |
Data volume | 1.4 MB | 144.6 kB |
Unique views | 136 | 55 |
Unique downloads | 41 | 9 |