This is source code and data for a comment on Garbarino, Ellen, Robert Slonim, and Marie Claire Villeval (2018): “A Method to Estimate Mean Lying Rates and Their Full Distribution.” Journal of the Economic Science Association.
For the PDF, see https://github.com/hughjonesd/GSV-comment/raw/master/GSV-comment-brief.pdf.
The published version is available here, if you like bad formatting and supporting parasitic academic publishers.
To reproduce the paper, click the "build binder" badge above.
Or, to reproduce manually, clone the repository from your command line:
git clone https://github.com/hughjonesd/GSV-comment.git
You'll also need GSV's original lying calculator, and
the checkpoint
R package.
When you're ready, fire up your favourite R IDE and:
- On the command line, run:
library(checkpoint)
checkpoint("2018-11-03")
This will install the versions of the packages used to create the comment.
- Set
rerun_java <- TRUE
at the top ofGSV-comment-brief.Rmd
, and knit the document. - R will stop and ask you to run the GSV lying calculator on the file
"GSV-sims.csv"
. Do so. - Set
rerun_java <- FALSE
and knit the document again.
Code for the Bayesian methods is now available as a standalone R package.
GSV-sims.csv
contains input for the GSV Java program. GSV-comment-brief.Rmd
will automatically
create this, but you can use it if you want to skip that step.