Giter Site home page Giter Site logo

fair_measurement's Introduction

Fair inference on error-prone outcomes

L. Boeschoten, E.-J. van Kesteren, A. Bagheri, & D.L. Oberski

DOI License: CC BY 4.0

This is a reproducible code repository supporting the manuscript. By running the R scripts in this repository, all the figures and tables can be reproduced. This repository follows a CC-BY 4.0 license.

The dataset data/data_new.csv was obtained directly without making changes from the dissecting bias repository on GitLab and is subject to their license terms.

Setup

Ensure you have R and RStudio installed and run the following lines to install the dependencies

  • install.packages("tidyverse", "glmnet", "patchwork", "lavaan", "remotes")
  • remotes::install_github("vankesteren/firatheme")

Running the code

The structure of the folder follows loosely the structure of the Experiments section in the manuscript. Clone this repository, open the fair_measurement.Rproj file and run the following files in order:

Section Main R file Main output
Data preparation and feature selection 01_feature_selection.R output/01_feature_selection.png
Fair inference on cost as a proxy of health 02_parity_correction.R output/02_parity_correction.pdf
Fair inference on latent health 03_measurement_model.R output/03_measurement_model.pdf
Investigating unfairness in proxies 04_differential_item_functioning.R Table 1 (in console)

These main R files depend on the remaining R files and output files in this repository. The main figures will appear in the output/ folder.

fair_measurement's People

Contributors

vankesteren avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.