Project

General

Profile

Actions

Support #1501

open

xtreg and fixed effects

Added by Leilah Plant-Tchenguiz almost 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Start date:
02/04/2021
% Done:

100%


Description

Hi,

I have been trying to estimate a panel regression using xtreg, fe in Stata. My observations are at the level of individuals for multiple waves. Since svy is not supported, how can I run the fixed effects estimation taking account of sample design? I have included pweight, but don't know how to account for clustering and strata. Would I end the xtreg command with "vce(cluster psu)"? Or should I use "vce(cluster pidp)"? Or one source I read suggested creating a new variable consisting of unique combinations of psu and strata (call it uniquevar) and then using "vce(cluster uniquevar)". I don't really understand the econometrics behind this, so any help would be appreciated.

Actions #1

Updated by Understanding Society User Support Team almost 4 years ago

  • Status changed from New to In Progress
  • Assignee set to Understanding Society User Support Team
  • % Done changed from 0 to 10
  • Private changed from Yes to No

Hi Leilah,

Many thanks for your enquiry. The Understanding Society team is looking into it and we will get back to you as soon as we can.

We aim to respond to simple queries within 48 hours and more complex issues within 7 working days. While we will aim to keep to this response times due to the current coronavirus (COVID-19) related situation it may take us longer to respond.

Best wishes,
Understanding Society User Support Team

Actions #2

Updated by Understanding Society User Support Team almost 4 years ago

  • Status changed from In Progress to Feedback
  • % Done changed from 10 to 80

Dear Leilah,

Your question is about Stata and more generally about statistics/econometrics. That is beyond the remit of this forum. Our remit is to answer any questions you have about the data, appropriate weights to use, describe the sample design, etc.

You can post your question on Statalist which is often very helpful. https://www.statalist.org/forums/ You can also search the forum as similar questions may have been asked before, and answered.

Best wishes,
Understanding Society User Support Team

Actions #3

Updated by Olena Kaminska almost 4 years ago

Leilah,

Thank you for your question. My suggestion is the following:
1) ignore stratification - this can't be taken into account with xtreg, I think. Your results would be more conservative (point estimates correct, but CI would be slightly wider).
2) Also, please do not use uniquevar or equivalent - this will be wrong in UKHLS context as stratification is more complex than in many other surveys (this could be true for some other surveys with a much simpler sample design).
3) Make sure to use PSU as your highest clustering level, with individuals being at a lower one.
4) Make sure to apply weights. I think you should be able to specify [pw=weight]

Hope this helps,
Olena

Actions #4

Updated by Leilah Plant-Tchenguiz almost 4 years ago

Okay, thank you so much!

Actions #5

Updated by Understanding Society User Support Team almost 4 years ago

  • Assignee changed from Understanding Society User Support Team to Olena Kaminska
Actions #6

Updated by Understanding Society User Support Team over 3 years ago

  • Status changed from Feedback to Resolved
  • Assignee deleted (Olena Kaminska)
  • % Done changed from 80 to 100
Actions

Also available in: Atom PDF