-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the meaning of fe in "ivcrc y (x=z), fe"? (no explanation in the help document) #2
Comments
What type of specification are you trying to run? |
Yes, a panel with individual fixed effects |
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.) |
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. |
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. |
|
Thanks! |
Thanks! |
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
The text was updated successfully, but these errors were encountered: