Code Monkey home page Code Monkey logo

Comments (7)

bashtage avatar bashtage commented on August 10, 2024

Possibly. I haven't started thinking about Dynamic Panel models to think about what a good interface would look like. I don't think the univariate GMM IV is enough to estimate the AB model.

from linearmodels.

spillz avatar spillz commented on August 10, 2024

Based on the Wikipedia entry I think the basic AB estimator can be estimated using your univariate GMM IV estimator. I started playing around in an IPython Notebook and created a simple class to replicate the instrument structure (scroll to the end):

https://gist.github.com/spillz/5cab778e146e37020d16c40eba9d9839

The more complicated AB estimator is a system IV. Is that something you have thought about implementing?

from linearmodels.

spillz avatar spillz commented on August 10, 2024

Actually, scratch this:

The more complicated AB estimator is a system IV.

It turns out it just stacks the differenced and undifferenced data and adds some additional instruments for the undifferenced set. So it's not really a "system". Should be easy to implement.

from linearmodels.

spillz avatar spillz commented on August 10, 2024

Thorough documentation by Roodman (creator of xtabond2):

http://www.stata-journal.com/article.html?article=st0159

from linearmodels.

bashtage avatar bashtage commented on August 10, 2024

A gist or similar would be helpful.

from linearmodels.

spillz avatar spillz commented on August 10, 2024

Yes, I'll add the system GMM estimator to the gist I linked above.

from linearmodels.

asmithbravo avatar asmithbravo commented on August 10, 2024

Dear Users,

I wanted to ask you a question related to Dynamic Panel Data and System-GMM models. When trying to run the System-GMM model, I get the following error message in STATA:

quadcross(): 3900 unable to allocate working space
xtabond2_mata(): - function returned error
: - function returned error
r(3900);

@droodman tol me that perhaps I was using too many instruments.
My annual panel covers 1960-2015, and around 160 countries. The code looks something like:

quietly: xtabond2 y l.y x1 x2 x3 x4 x5 year* , gmmstyle(y, laglimits(2 .)) gmmstyle(x1 x2 x3 x4 x5 , laglimits(1 .)) ivstyle(year* , p) noleveleq robust nodiffsargan nomata

Thanks for your help

from linearmodels.

Related Issues (20)

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.