Skip to content

hughjonesd/GSV-comment

Repository files navigation

Launch Rstudio Binder

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:

  1. On the command line, run:
library(checkpoint)
checkpoint("2018-11-03")

This will install the versions of the packages used to create the comment.

  1. Set rerun_java <- TRUE at the top of GSV-comment-brief.Rmd, and knit the document.
  2. R will stop and ask you to run the GSV lying calculator on the file "GSV-sims.csv". Do so.
  3. Set rerun_java <- FALSE and knit the document again.

Other files

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.

About

Source code for a comment on Garbarino, Slonim and Villeval (JESA 2018)

Resources

Stars

Watchers

Forks

Packages

No packages published