Hi Statalist,
I think I want to use the command "suest" to test if two coefficient estimates are the same from two different regression models. However, I think I am experiencing problems as I use first differenced models, which I have read on the statalist does not function well with the "suest" command. A further problem is that one of the regression models is weighted by the the weight of the municipality as a share of the total population. This produce the error "inconsistent weighting types" when using "suest"
The data that I use is paneldata following the same municipalitites over 20 years. I run a simple first difference model where the output is one year change in local unemployment rate (LUR) and the explanatory variable is a one year change in the a share of refugees (RS) in the municipality relative to the municipality population. The erors are clustered at municipality level to take into account correlation within municipalities and I further control for time fixed effects by including a year dummy.
I want to make a robustness test to check if the coefficient estimate changes significantly when weighting the effects by the size of the municipality relative to the total population in the country. Thus I write:
* Weighted regression
reg LUR RS i.year [weight=pop_share], nocons cluster(idnewM)
estimates store weight
* Unweighted regression
reg LUR RS i.year, nocons cluster(idnewM)
estimates store noweight
suest weight noweight
test [weight_mean]RS =[noweight_mean]RS
However, the error message replies "inconsistent weighting types"
I think I found out that I should not cluster in the regression but instead specify it in the suest command, but the error still says "inconsistent weighting types". I have tried othe weighting types as pweight and aweight. But I stille cannot get it to work. The stata I use is 13.0
I hope someone is able to help me
Kind regars Cecilie
Related Posts with Confusion about the command "suest"
bootstraping clustered standard errors in system GMM help!Hi guys, I am running a diff-in-diff fixed effects model with 16 countries between 2002 to 2017 test…
Instrumental VariablesHello Experts, I am employing GMM approach on dynamic panel model. There are three endogenous variab…
Foreach in mataDear All, just a quick question. Is it possible to use foreach within a mata function? Suppose I h…
Moderating effects in VAR possibleDear all, I am analyzing panel data covering 52 firms over one year and thinking about employing a …
reshape the datasetHello I have the dataset as below. It is just one long row variable. I want to reshape using reshap…
Subscribe to:
Post Comments (Atom)
0 Response to Confusion about the command "suest"
Post a Comment