Hi there
First off, I’m sorry if this is obviously to everyone else, but I have searched the internet for weeks now, and haven’t found anything on this subject.
So I’m running a FE-model including 40 countries over 11 years and my dataset are unbalanced. I’m essential looking at, what affects the number of entrepreneurs in a country and my model looks like this:
xtreg y x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12, fe vce(cluster Country_No)
My problem is that I would like to show the within-estimator of one of my dependent variables in a line-graph and in the same graph show all the coefficients of the different groups (countries).
I my case, I would for example like to show how the level of taxation is collated with the number of entrepreneurs (as % of pop.) in every given country along with the overall fixed-effects within-estimator.
I have to admit, that I have given up on STATAs own graph and tried to export the numbers and build the graph in Excel.
So far, I have tried running a normal reg. in both parmby and statsby – like this:
parmby "reg y x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12", by(Country) label saving(model2,replace)
statsby, clear by(Country) : reg x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12
The problem is, that it then won’t include the country dummy variables and the estimations are the way off compared to my original estimation (or at least that’s what I think? I simply just take the mean of all coefficients within one variable from the different countries – and that mean is nothing like my FE estimate).
I have also tried to run statsby and parmby with xtreg, fe - but that won’t put out any results at all (which I don’t blame it for, since it needs more than one country at a time).
So my question is – what do I do? I have simply given up and you guys are my last hope :-) ANY help would be deeply appreciated!
Thanks in advance,
Emil
First off, I’m sorry if this is obviously to everyone else, but I have searched the internet for weeks now, and haven’t found anything on this subject.
So I’m running a FE-model including 40 countries over 11 years and my dataset are unbalanced. I’m essential looking at, what affects the number of entrepreneurs in a country and my model looks like this:
xtreg y x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12, fe vce(cluster Country_No)
My problem is that I would like to show the within-estimator of one of my dependent variables in a line-graph and in the same graph show all the coefficients of the different groups (countries).
I my case, I would for example like to show how the level of taxation is collated with the number of entrepreneurs (as % of pop.) in every given country along with the overall fixed-effects within-estimator.
I have to admit, that I have given up on STATAs own graph and tried to export the numbers and build the graph in Excel.
So far, I have tried running a normal reg. in both parmby and statsby – like this:
parmby "reg y x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12", by(Country) label saving(model2,replace)
statsby, clear by(Country) : reg x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12
The problem is, that it then won’t include the country dummy variables and the estimations are the way off compared to my original estimation (or at least that’s what I think? I simply just take the mean of all coefficients within one variable from the different countries – and that mean is nothing like my FE estimate).
I have also tried to run statsby and parmby with xtreg, fe - but that won’t put out any results at all (which I don’t blame it for, since it needs more than one country at a time).
So my question is – what do I do? I have simply given up and you guys are my last hope :-) ANY help would be deeply appreciated!
Thanks in advance,
Emil
Comment