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.
Display point estimates for multiple regressions of covariates in one column with outreg2.I am trying to create a balance table that compares differences between groups for multiple covariat…
Number of Estimated Coefficients in a RegressionIs there a way to display the number coefficients estimated in a regression? I am estimating differe…
Moving average with panel dataHello all, Below is an example of the data I am working with: Code: input float(year quarter mile…
Xtset and string variablesHi Everyone, I am trying to set my data as a panel by using xtset command. I have uasid as identifi…
Creating Variable and Dummy Variable Based on Condition Met in Each YearI am trying to create dummy variable based on conditions met in each the year - I will have two vari…
Subscribe to:
Post Comments (Atom)
0 Response to Logit FE regression in cross-sectional data.
Post a Comment