truelies

Implements Bayesian methods, described in Hugh-Jones (2019), for estimating the proportion of liars in coinflip-style experiments.

https://github.com/hughjonesd/truelies

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 1 DOI reference(s) in README
  • Academic publication links
    Links to: springer.com
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.9%) to scientific vocabulary

Keywords

experiment lying r
Last synced: 6 months ago · JSON representation

Repository

Implements Bayesian methods, described in Hugh-Jones (2019), for estimating the proportion of liars in coinflip-style experiments.

Basic Info
  • Host: GitHub
  • Owner: hughjonesd
  • License: other
  • Language: R
  • Default Branch: master
  • Size: 80.1 KB
Statistics
  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
experiment lying r
Created over 6 years ago · Last pushed over 4 years ago
Metadata Files
Readme License

README.Rmd

---
output: github_document
---



```{r setup, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```
# truelies

 [![CRAN status](https://www.r-pkg.org/badges/version/truelies)](https://cran.r-project.org/package=truelies)
[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/hughjonesd/truelies?branch=master&svg=true)](https://ci.appveyor.com/project/hughjonesd/truelies)

`truelies` implements Bayesian methods, described in 
[Hugh-Jones (2019)](https://link.springer.com/article/10.1007/s40881-019-00069-x), 
for estimating the proportion of liars in coinflip-style experiments, where
subjects report a random outcome and are paid for reporting a "good" outcome.

For R source for the original paper, see https://github.com/hughjonesd/GSV-comment.

## Installation

``` r
# stable version on CRAN
install.packages("truelies")

# latest version from github
remotes::install_github("hughjonesd/truelies")
```

## Example

If you have 33 out of 50 reports of heads in a coin flip experiment:

```{r example}
library(truelies)
d1 <- update_prior(heads = 33, N = 50, P = 0.5, prior = dunif)
plot(d1)

dist_mean(d1)

# 95% confidence interval, using hdrcde
dist_hdr(d1, 0.95)
```

## Citation

`r format(citation("truelies"), style = "text")`

## Bibtex 

```{r, echo = FALSE, comment = NA}
cit <- citation("truelies")
cit$key <- "hughjones2019"
print(cit, style = "Bibtex")
```

Owner

  • Name: David Hugh-Jones
  • Login: hughjonesd
  • Kind: user

Social scientist, R hacker

GitHub Events

Total
Last Year

Committers

Last synced: over 1 year ago

All Time
  • Total Commits: 26
  • Total Committers: 1
  • Avg Commits per committer: 26.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
David Hugh-Jones d****s@g****m 26

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 190 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 2
  • Total maintainers: 1
cran.r-project.org: truelies

Bayesian Methods to Estimate the Proportion of Liars in Coin Flip Experiments

  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 190 Last month
Rankings
Forks count: 28.8%
Dependent packages count: 29.8%
Stargazers count: 35.2%
Dependent repos count: 35.5%
Average: 42.1%
Downloads: 81.5%
Maintainers (1)
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • hdrcde * imports
  • MASS * suggests
  • dplyr * suggests
  • ggplot2 * suggests
  • purrr * suggests
  • tidyr * suggests