Learn R Programming

causaldata (version 0.1.3)

Example Data Sets for Causal Inference Textbooks

Description

Example data sets to run the example problems from causal inference textbooks. Currently, contains data sets for Huntington-Klein, Nick (2021) "The Effect" , Cunningham, Scott (2021, ISBN-13: 978-0-300-25168-5) "Causal Inference: The Mixtape", and Hernn, Miguel and James Robins (2020) "Causal Inference: What If" .

Copy Link

Version

Install

install.packages('causaldata')

Monthly Downloads

2,243

Version

0.1.3

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Nick Huntington-Klein

Last Published

December 1st, 2021

Functions in causaldata (0.1.3)

close_elections_lmb

A close-elections regression discontinuity study from Lee, Moretti, and Butler (2004)
nhefs_codebook

NHEFS Codebook
nhefs

National Health and Nutrition Examination Survey Data I Epidemiologic Follow-up Study
greek_data

Data from a fictional randomized heart transplant study
ri

A simple simulated data set for calculating p-values
scorecard

Earnings and Loan Repayment in US Four-Year Colleges
mortgages

Data from "How do Mortgage Subsidies Affect Home Ownership? Evidence from the Mid-Century GI Bills"
texas

Data on prison capacity expansion in Texas
thornton_hiv

Data from HIV information experiment in Thornton (2008)
social_insure

Data from "Social Networks and the Decision to Insure"
snow

Data from John Snow's 1855 study of the cause of cholera
gov_transfers_density

Data from "Government Transfers and Political Support" for Density Tests
gov_transfers

Data from "Government Transfers and Political Support"
organ_donations

Organ Donation Data
restaurant_inspections

Data on Restaurant Inspections
nsw_mixtape

Data from the National Supported Work Demonstration (NSW) job-training program
titanic

Data from the sinking of the Titanic
nhefs_complete

Complete-Data National Health and Nutrition Examination Survey Data I Epidemiologic Follow-up Study
gapminder

Gapminder data
google_stock

Google Stock Data
training_bias_reduction

Simulated data from a job training program for a bias reduction method
credit_cards

Data on Taiwanese Credit Card Holders
cps_mixtape

Observational counterpart to nsw_mixtape data
yule

Data on 19th century English Poverty from Yule (1899)
training_example

Simulated data from a job training program
abortion

Data on abortion legalization and sexually transmitted infections
avocado

Data on avocado sales
castle

Data on castle-doctrine statutes and violent crime
causaldata-package

causaldata: Example Data Sets for Causal Inference Textbooks
black_politicians

Data from "Black Politicians are More Intrinsically Motivated to Advance Blacks' Interests"
auto

Automobile data from Stata
Mroz

U.S. Women's Labor-Force Participation
adult_services

Data from a survey of internet-mediated sex workers
close_college

Data from Card (1995) to estimate the effect of college education on earnings