Giter VIP home page Giter VIP logo

ents's Introduction

ents

Build Status Project Status: WIP  Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.

Overview

This package implements methods for maximum entropy synthetic controls using multiple outcomes.

Installation

To install this package, first ensure that devtools is installed with

install.packages("devtools")

then install the package from GitHub with

devtools::install_github("ebenmichael/ents")

Basic usage

The following requires a data frame outcomes which at a minimum has the following columns:

  • outcome_id: ID or name of the outcome
  • time: Time that outcome was measured
  • outcome: Value of the outcome
  • treated: Whether the unit is treated

and a data frame metadata which at a minimum has the following columns:

  • t_int: Time of intervention/treatment

Four methods of imputing a synthetic control are implemented:

  • get_synth: The Abadie, Diamond, Hainmueller (2010) synthetic controls estimator, fit using Synth
  • get_l2_entropy: The maximum entropy synthetic controls estimator
  • get_dr: The maximum entropy synthetic controls estimator augmented with a linear outcome model
  • get_ipw: An IPW estimator fit with regularized logistic regression

Each function takes in outcomes and metadata along with hyper-parameters, and returns as list including a dataframe with the synthetic control added and the synthetic control weights.

ents's People

Contributors

ebenmichael avatar

Stargazers

Jason Poulos avatar Noah Zinsmeister avatar

Forkers

hehuanshu96

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.