• Stars
    star
    124
  • Rank 288,207 (Top 6 %)
  • Language
    Python
  • Created over 3 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Packages of Example Data for The Effect

causaldata

This repository will contain R, Stata, and Python packages, all called causaldata, which contain data sets that can be used to implement the code examples in causal inference textbooks.

As of the moment, this contains data sets from The Effect by Huntington-Klein, Causal Inference: The Mixtape by Scott Cunningham, and Causal Inference: What If? by HernΓ‘n and Robins. The judge_fe data set from The Mixtape is too large to include, and so is omitted.

Data sets all come with documentation in the form of variable labels, although the exact format of this varies from language to language.

R

The R package can be installed with:

install.packages('causaldata')

# Or dev version (currently identical):
# If necessary: install.packages('remotes')
remotes::install_github('NickCH-K/causaldata/R/')

Stata

The Stata package can be installed with:

ssc install causaldata

* Or for the dev version (currently identical)
net install causaldata, from("https://raw.githubusercontent.com/NickCH-K/causaldata/master/Stata/")

Python

To install the Python package, do

pip install causaldata

For the dev version (currently identical), use the green Code button on this page to download this repository, unzip it, change the directory to the causaldata/Python folder, and install with:

python setup.py install

Or, if you're using something with IPython like Spyder, you might use

runfile('the/full/path/to/causaldata/Python/setup.py', wdir='your/working/directory',args='install')

More Repositories

1

causalgraphs

R code for causal graph animations
R
292
star
2

causalbook

Replication code and downloadable example data sets for The Effect
R
188
star
3

EconometricsSlides

This is the repository for the slides used in the Seattle University Econometrics course
HTML
138
star
4

CausalitySlides

Slides for the Seattle University Causal Inference Class
HTML
125
star
5

introcausality

Class materials for "Economics, Causality, and Analytics"
HTML
119
star
6

Econometrics

A Swirl course for introductory econometrics
R
66
star
7

DataCommSlides

Slides for Seattle University Course on Data Communications
HTML
65
star
8

TheEffectAssignments

Homework assignments to go along with The Effect
HTML
53
star
9

LOST

The Library of Statistical Techniques: Instructions for Performing Statistics THIS REPO IS MOVING TO https://github.com/LOST-STATS/LOST-STATS.github.io
R
49
star
10

vtable

An R package for creating Variable Documentation Files
R
39
star
11

pmdplyr

Panel Maneuvers in dplyr: An R package for cleaning and manipulating panel and hierarchical data
R
33
star
12

did

A Stata package that acts as a wrapper for Callaway and Sant'anna's R did package
Stata
31
star
13

DataWranglingWorkshopFiles

These are the files for the walk-through example at the end of the data wrangling workshop(s)
Stata
22
star
14

mlrtime

A Stata package for running machine learning analyses in R
Stata
22
star
15

CVRoller

A python program designed to automatically generate and update CVs
HTML
10
star
16

DataVizChecklist

A brief checklist to go through before you're done with your data visualization, or as you're using it.
10
star
17

nicksshorts

An R package with some convenience functions for graphing and data cleaning
R
9
star
18

TheEffectStyle

Files and tips for modifying the msmbstyle Bookdown style to look like The Effect
JavaScript
6
star
19

ManyEconomists

This repository is a central website describing the 2022 Many Economists Project
5
star
20

learnstuff

An R script that, despite being wildly inaccurate, tells you what to do with your life.
R
3
star
21

SomeThoughts

A place to keep some brief blog-style thoughts, and when I have enough of them, a place to be annoyed I didn't set up a proper blogging structure the first time around.
HTML
3
star
22

SafeGraphR

Package for reading and analyzing SafeGraph data
R
3
star
23

MagnifiedIV

A package to implement Magnified IV (SLATE) methods as in Huntington-Klein (2019)
R
2
star
24

AngristBattistinVuriReplicationReport

AEA Replication Report for Angrist Battistin and Vuri AEA:AE 2017
Stata
2
star
25

ggwhiteboard

Static and Animated Line, Shading, and Intersection Whiteboard Plots in ggplot2
R
2
star
26

MagIVStata

A Stata package for running Magnified IV/SLATE estimation
Stata
1
star
27

SafeGraphCompareDashboard

Compare Two Locations or Location Sets on their SafeGraph Foot Traffic - Example Using Houston
R
1
star
28

repl_data

Downloadable files
HTML
1
star