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"
endogeneityDear researchers, I am using the generalized DID model “Two way-fixed effect”. I have more than two …
one sided test of proportions using svyI am trying to do a one sided test of proportions with survey data. I've svyset the data. Normally I…
Statistical significance between two discrete variablesDear Stata users: I have a variable called delay which is the number of days that a firm waited to d…
How to construct a new variable by singling out one or more words from a longer phrase?I want to have a new variable which is constructed by taking out one or more words after "Battle of …
Foreach loopHi all, I please have another question. So I have variables Revenue_GDP, Expenditure_GDP, Consumpt…
Subscribe to:
Post Comments (Atom)
0 Response to Confusion about the command "suest"
Post a Comment