Giter Site home page Giter Site logo

a-torgovitsky / ivcrc Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 3.0 218 KB

A Stata module for an instrumental variables correlated random coefficients estimator.

License: MIT License

Stata 100.00%
stata stata-package econometrics statistics causal-inference iv instrumental-variable instrumental-variables stata-packages

ivcrc's Introduction

ivcrc: An Instrumental Variables Estimator for the Correlated Random Coefficients Model

Description: A Stata module for implementing the instrumental variables correlated random coefficients estimator proposed in Masten and Torgovitsky (2016) and analyzed in more detail in Masten and Torgovitsky (2014). The module also allows users to estimate varying coefficient models.

Authors: This module was written by David Benson, in collaboration with Matt Masten and Alexander Torgovitsky.

Requirements

  • Stata version 12

Installation

In Stata, type "ssc install ivcrc". Or copy ivcrc.ado, _ivcrc_estimator.ado, and ivcrc.sthlp files to your Stata/ado/personal directory. See the Stata help file for explanation of the syntax.

Subdirectories

  • Application - Files for our empirical illustration
  • Test - Files for testing correctness of the module's output

Troubleshooting

Please post problems or suggestions to the issue queue.

References

Masten and Torgovitsky (2016) Identification of Instrumental Variable Correlated Random Coefficients Models, The Review of Economics and Statistics 98 (5), pp. 1001-1005

Masten and Torgovitsky (2014) Instrumental Variables Estimation of a Generalized Correlated Random Coefficients Model, Cemmap working paper CWP02/14

License

© 2018 David Benson, Matt Masten, Alexander Torgovitsky

The contents of this repository are distributed under the MIT license. See file LICENSE for details.

ivcrc's People

Contributors

a-torgovitsky avatar d-benson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ivcrc's Issues

What is the meaning of fe in "ivcrc y (x=z), fe"? (no explanation in the help document)

Hi,
I am trying to run this program with fixed effects dummies using the i.identifier notation, and I can achieve it by adding "xi:" before the ivcrc comand. Luckily, I also found that ivcrc can be followed by a "fe" after the comma, like this "ivcrc y (x=z), fe", but there is no explanation in the help document . So, does the "fe" represent the fixed effect?
Best
Alan

"factor-variable and time-series operators not allowed" bug?

Hi,

I am trying to run this program with fixed effects dummies using the i.identifier notation, but I am getting a "factor-variable and time-series operators not allowed" error. It looks like the preliminaries section of the estimator code is missing a fvexpand command in the trim("`varcoef'")=="" case, but I am hardly an expert in stata and could be wrong.

Best,

Gerardo

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.