luck-and-choice

Choice model estimation for "Luck, choice and responsibility — An experimental study of fairness views"

https://github.com/erikosorensen/luck-and-choice

Science Score: 57.0%

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

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.4%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Choice model estimation for "Luck, choice and responsibility — An experimental study of fairness views"

Basic Info
  • Host: GitHub
  • Owner: ErikOSorensen
  • License: bsd-3-clause
  • Language: R
  • Default Branch: master
  • Size: 1.43 MB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • Open Issues: 0
  • Releases: 2
Created over 7 years ago · Last pushed over 3 years ago
Metadata Files
Readme License Citation

README.md

README

This file is here to document the replication package for the choice model estimated in Johanna Mollerstrom, Bjørn-Atle Reme, Erik Ø. Sørensen, Luck, choice and responsibility — An experimental study of fairness views, Journal of Public Economics, Volume 131, 2015, Pages 33-40, https://doi.org/10.1016/j.jpubeco.2015.08.010.

data/DataErik.dta and data/situations.dta: Data

preprocess.do (and .log): Stata dataprocessing script which takes the files created above and creates data/DataEriklong.dta and data/DataErikplayers.dta.

luck-model.Rmd: R file with definition of data structures, log likelihood functions, standard error calculations and such. No actual estimation is done by this file. luck-model.{R,html} are products of this file. The html-file has explanations of how the likelihood function is calculated as well. An explicit design goal for the code is to be value explicit typing and design of data structures and straightforward calculation above computational speed. But an understanding of the R S4 object system might be necessary to fully understand the code here.

luck-main-table.Rmd: R file with estimation code for Table 6 in the paper. luck-main-table.html is the file with calculated output.

insurancenoinsurance: R file with estimation code for Table 8 in the paper. insurancenoinsurance.html is the file with calculated output.

poolingwithextension.Rmd: R file with estimation code for Table 9 in the paper. poolingwithextension.html is the file with calculated output.

predictions.do: Stata file that do predictions to generate Table 7. Generates predictions.log

The html files are readable with standard browsers. The three files with estimation code relies on the luck-model.R file for its functions. It might be wise to study one of the generated .html files with calculated results from the .Rmd files to see what installed packages are needed. The library file luck-model.Rmd also relies on setting R to work with 8 processor cores. For a different computer, this should be changed to reflect the computer it is running on.

Owner

  • Name: Erik Ø. Sørensen
  • Login: ErikOSorensen
  • Kind: user
  • Location: Norway
  • Company: NHH Norwegian School of Economics

Professor of economics at NHH Norwegian School of Economics. Works on social preferences and applied econometrics.

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: >-
  Replication package for "Luck, choice and
  responsibility - An experimental study of fairness
  views"
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - given-names: Johanna
    family-names: Mollerstrom
    orcid: 'https://orcid.org/0000-0002-8097-2058'
    affiliation: George Mason University
  - given-names: Bjørn-Atle
    family-names: Reme
    affiliation: Norwegian Institute of Public Health
    orcid: 'https://orcid.org/0000-0002-1554-0996'
  - given-names: Erik Ø.
    family-names: Sørensen
    email: erik.sorensen@nhh.no
    affiliation: NHH Norwegian School of Economics
    orcid: 'https://orcid.org/0000-0002-7155-4188'
identifiers:
  - type: doi
    value: 10.5281/zenodo.5658118
    description: Concept DOI
repository-code: 'https://github.com/ErikOSorensen/luck-and-choice'
license: BSD-3-Clause
references:
  - title: "Luck, choice and responsibility - An experimental study of fairness views"
    authors:
      - given-names: Johanna
        family-names: Mollerstrom
      - given-names: Bjørn-Atle
        family-names: Reme
      - given-names: Erik Ø.
        family-names: Sørensen
    doi: "10.1016/j.jpubeco.2015.08.010"
    journal: "Journal of Public Economics"
    type: article
    volume: 131
    year: 2015
    start: 33
    end: 40
    scope: "This is the paper the software was developed to support"

GitHub Events

Total
Last Year

Dependencies

.github/workflows/cffconvert.yml actions
  • actions/checkout v2 composite
  • citation-file-format/cffconvert-github-action 2.0.0 composite