Hi Statlisters,
I wanted to assess the impact of compliance with IMF conditions on firm sales growth. My sample covers 36 countries with an IMF program between 2006 and 2016. The years are not the same for all countries because the start years of IMF programs differ across countries. Only 11 of 36 countries have more than one program. Since I have two levels, country level variables and firm level variables, I use the multilevel model with the xtmixed.
For countries with one program, I will have one compliance rate but different growth rates of the firms within the country - one growth rate for each firm.
As for countries that have 2 programs I have two compliance rate, and different growth rates for each program.
************************************************** ****
I use the following variables
countrylevel variables are : cr_pr(compliance) nb_cond_prg s_avgee pstartGDPgrowth lpop
firm level variable are : glsales_short(firms sales growth) lsales_start FDI_s exporters_s state_s size
*******************************************
continuous variables : cr_pr nb_cond_prg s_avgee pstartGDPgrowth lpop glsales_short lsales_start size
dummy variables : FDI_s exporters_s state_s
the command I used is:
xtmixed glsales_short cr_pr nb_cond_prg lsales_start FDI_s exporters_s state_s size s_avgee pstartGDPgrowth lpop i.country || country:, mle variance
I included a fixed effect to control for unobserved country variables and all country coefficients appeared and significant. My supervisor told me that it was not possible to have fixed effects for countries with only one program because I only have one country-level observation for those countries. But at the same time Stata allows to include fixed effects at country-level.
My questions are ?
Is it possible to include a fixed effect in the estimation of a multilevel model?
and if not, why does stata allow me to do so?
Thank you in advance,
I wanted to assess the impact of compliance with IMF conditions on firm sales growth. My sample covers 36 countries with an IMF program between 2006 and 2016. The years are not the same for all countries because the start years of IMF programs differ across countries. Only 11 of 36 countries have more than one program. Since I have two levels, country level variables and firm level variables, I use the multilevel model with the xtmixed.
For countries with one program, I will have one compliance rate but different growth rates of the firms within the country - one growth rate for each firm.
As for countries that have 2 programs I have two compliance rate, and different growth rates for each program.
************************************************** ****
I use the following variables
countrylevel variables are : cr_pr(compliance) nb_cond_prg s_avgee pstartGDPgrowth lpop
firm level variable are : glsales_short(firms sales growth) lsales_start FDI_s exporters_s state_s size
*******************************************
continuous variables : cr_pr nb_cond_prg s_avgee pstartGDPgrowth lpop glsales_short lsales_start size
dummy variables : FDI_s exporters_s state_s
the command I used is:
xtmixed glsales_short cr_pr nb_cond_prg lsales_start FDI_s exporters_s state_s size s_avgee pstartGDPgrowth lpop i.country || country:, mle variance
I included a fixed effect to control for unobserved country variables and all country coefficients appeared and significant. My supervisor told me that it was not possible to have fixed effects for countries with only one program because I only have one country-level observation for those countries. But at the same time Stata allows to include fixed effects at country-level.
My questions are ?
Is it possible to include a fixed effect in the estimation of a multilevel model?
and if not, why does stata allow me to do so?
Thank you in advance,
Comment