Code Monkey home page Code Monkey logo

Comments (8)

a-torgovitsky avatar a-torgovitsky commented on May 26, 2024

What type of specification are you trying to run?
Is this a panel with individual fixed effects?

from ivcrc.

AlanLee1017 avatar AlanLee1017 commented on May 26, 2024

What type of specification are you trying to run? Is this a panel with individual fixed effects?

Yes, a panel with individual fixed effects

from ivcrc.

a-torgovitsky avatar a-torgovitsky commented on May 26, 2024

Can you describe the specification you want to run?

(Meaning what are the variables, what's endogenous, what's time-varying, what's the instrument, etc.)

from ivcrc.

d-benson avatar d-benson commented on May 26, 2024

Unfortunately, "fe" is not an undocumented ivcrc option, so running

ivcrc y (x = z), fe

does not do anything with fixed effects. The module ignores "fe" and proceeds on the part it does understand: "ivcrc y (x =z)." The module does not automatically create dummy variables for fixed effects categories (factor variables more generally) or conduct within transformations the way commands like these

areg y x, absorb(id)

or

xtreg y x, fe

would work. However, stata's "xi: ..." wrapper is very flexible and can create temporary dummy variables from categorical data or IDs for most commands, including ivcrc. Other than using "xi: ...", you could manually generate dummies for each fixed effects category, or possibly use stata's within-transformation command "xtdata, fe" if demeaning makes econometric sense given the application.

from ivcrc.

a-torgovitsky avatar a-torgovitsky commented on May 26, 2024

The econometric issue here is the first stage quantile regression, which you cannot apply the within transformation to, and which will be subject to the incidental parameters problem.
However, it's possible you could justify the assumptions on an outcome model that has already been within-transformed.
Depends a bit on the specifics.

from ivcrc.

AlanLee1017 avatar AlanLee1017 commented on May 26, 2024

Meaning what are the variables, what's endogenous, what's time-varying, what's the instrument, etc
It's actually an unbalanced panel (5 periods, on average, 5000 individuals/periods)
the specification is as following:
Y_{ict}: the dependent variable ( i-individual, c-county, t-time)
X_{c,t}: the independent variable
Z_{c,t}: the instrument
H_{ict}: the time-varying control variables (including individual\county levels)

from ivcrc.

AlanLee1017 avatar AlanLee1017 commented on May 26, 2024

Unfortunately, "fe" is not an undocumented ivcrc option, so running

ivcrc y (x = z), fe

does not do anything with fixed effects. The module ignores "fe" and proceeds on the part it does understand: "ivcrc y (x =z)." The module does not automatically create dummy variables for fixed effects categories (factor variables more generally) or conduct within transformations the way commands like these

areg y x, absorb(id)

or

xtreg y x, fe

would work. However, stata's "xi: ..." wrapper is very flexible and can create temporary dummy variables from categorical data or IDs for most commands, including ivcrc. Other than using "xi: ...", you could manually generate dummies for each fixed effects category, or possibly use stata's within-transformation command "xtdata, fe" if demeaning makes econometric sense given the application.

Thanks!

from ivcrc.

AlanLee1017 avatar AlanLee1017 commented on May 26, 2024

The econometric issue here is the first stage quantile regression, which you cannot apply the within transformation to, and which will be subject to the incidental parameters problem. However, it's possible you could justify the assumptions on an outcome model that has already been within-transformed. Depends a bit on the specifics.

Thanks!

from ivcrc.

Related Issues (2)

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.