Dear Statalist,
I have read about this topic in various discussions but I could not take a clear response.
I have micro cross-sectional data-base (at firm level) for 58 countries. What I am trying to do is a logit regression (my dependent variable is a binary one) controlling for each country due to heterogeneity between countries. Furthermore, I would like to add macro variables like lnGDP (logarithm of the GDP per worker). My code is the next:
logit Y X Z i.country , vce(robust) // where Y is my dependent variable, X is a vector of variables at firm level and Z a vector of variables at country level.
However, doing this, various country levels are omitted. I have read in some papers that it is not possible to include country variables when you are controlling for countries. So, then I decided to run multilevel logit model of two levels (firms and countries). My code is the next
melogit Y X Z || country: , vce(robust)
So, my question is. It is a good idea to run a multilevel model, or maybe I should run the first regression but omitting "i.country" variable and replacing vce(robust) by vce(cluster country)?
I hope you can give me some guidance.
Thanks in advanced,
Ibai
Related Posts with Logit FE regression in cross-sectional data.
How to obtain confidence intervals for weighted median survival time Hello, I am seeking for guidance on how to calculate or obtain the confidence intervals for weighte…
Interpreting multiplicative interaction in StataDear all, I am interested in evaluating if there is multiplicative interaction between one categori…
Calculating Age Using DatesIn Stata, I need to calculate the age of a patient at the last check-up by using the date of birth a…
Propensity matchingHello, I am new to stata and getting this error while running propensity matching. . quietly dr DI…
Assessing model using svy dataDear Statalist community, I am using a nationwide dataset with survey sampling to determine a speci…
Subscribe to:
Post Comments (Atom)
0 Response to Logit FE regression in cross-sectional data.
Post a Comment