Giter Site home page Giter Site logo

causaldata-nickch-k-'s Introduction

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')

causaldata-nickch-k-'s People

Contributors

nickch-k avatar malcolmbarrett 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.