opsdopa.blogg.se

Suest stata
Suest stata












regress invest mvalue kstock i.year, nocons cluster(company) I have tried othe weighting types as pweight and aweight. 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". However, the error message replies "inconsistent weighting types" Reg LUR RS i.year, nocons cluster(idnewM) 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. 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 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 data that I use is paneldata following the same municipalitites over 20 years. This produce the error "inconsistent weighting types" when using "suest" 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. 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. I think I want to use the command "suest" to test if two coefficient estimates are the same from two different regression models.














Suest stata