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.
Beta regression problemHi, I am using panel data for 27 different countries in 5 different time periods. My IV and DV both …
How to add two variables with one conditions each using graph barI would like to graph two variables with one condition each. For example, I would like to graph wage…
How to put frequency, mean and other specific values into WORD and EXCELHi there, I am currently dealing with descriptive analysis. In my dataset, there are many categoric…
Postfile command gives error/notification ''File not found''Dear all, I ran the following code in Stata: Code: clear all set seed 312312 set obs 100 gen t = _…
Comparing survival curves for imputed dataHow can we test/compare survival curves after multiple imputations? …
Subscribe to:
Post Comments (Atom)
0 Response to Logit FE regression in cross-sectional data.
Post a Comment