Dear all,
I have a weighted dataset of firms that comes with importance weights as the provided dataset is a sample from larger survey data.
I can run OLS regressions without problems by simply adding [iweight=myweight] where myweight is the weighting factor provided.
However, I also need to run some of the panel data methods, in particular the fixed effects regression and GMM regressions, but neither allows for the iweight.
I am trying to transform my dataset into a weighted dataset, and subsequently run the regressions. I have tested this on OLS regressions by comparing the weighted regression with the regression on the weighted data, the results are not the same though.
Is there any option or idea on how to fix this?
Help much appreciated
This is the error I get when I simply include the weight into a xtreg regression:
xtreg output capital labour materials services i.year [iweight=myweight], fe vce(robust)
iweight not allowed with fixed-effects models
r(101);
I have a weighted dataset of firms that comes with importance weights as the provided dataset is a sample from larger survey data.
I can run OLS regressions without problems by simply adding [iweight=myweight] where myweight is the weighting factor provided.
However, I also need to run some of the panel data methods, in particular the fixed effects regression and GMM regressions, but neither allows for the iweight.
I am trying to transform my dataset into a weighted dataset, and subsequently run the regressions. I have tested this on OLS regressions by comparing the weighted regression with the regression on the weighted data, the results are not the same though.
Is there any option or idea on how to fix this?
Help much appreciated
This is the error I get when I simply include the weight into a xtreg regression:
xtreg output capital labour materials services i.year [iweight=myweight], fe vce(robust)
iweight not allowed with fixed-effects models
r(101);
