Support #1204

UKHLS zero weight in panel data

Added by Sook Kim 11 months ago. Updated 10 months ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:


Hello. I'd like some advice about weighting variable. I'm using UKHLS waves 1 through 7, individual data.
When I ran svy command in Stata, the number of observations shrink due to zero. I tried iweight but it's not fixed.

svyset psu [pw=my_lw], strata(strata) singleunit(centered)
svyset psu [iw=my_lw], strata(strata) singleunit(centered) // iweight applied for experiment

I am aware that any participant who missed any survey wave, gets zero weight, thus when I copied 2015 weight to the rest of waves, this generated a large proportion of zero weight.
Is there any fix for this, please, and should I? Or should I just report and explain ?
The code below is from user manual.

  • my longitudinal weight
    tab wave

/*copy the LAST wave's value over to previous waves
gen my_lw = indinus_lw
bysort pidp (year) : replace my_lw = my_lw[_N]

Thank you and I really appreciate your support.


#1 Updated by Alita Nandi 11 months ago

  • Private changed from Yes to No
  • Assignee set to Olena Kaminska

#2 Updated by Alita Nandi 11 months ago

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.

Best wishes,
Understanding Society User Support Team

#3 Updated by Olena Kaminska 11 months ago


Don't worry about zero values of weights - as long as you use weights and adjust for clustering and stratification your results are representative. You don't need to report about zero weights in your paper either. Just say that you are using weighted analysis.

If you are using waves 1 through 7 your weights should come from wave 7 (unless you are using long format of the data).

Hope this helps,

#4 Updated by Alita Nandi 11 months ago

  • % Done changed from 0 to 80

#5 Updated by Alita Nandi 11 months ago

  • Assignee changed from Olena Kaminska to Sook Kim

#6 Updated by Stephanie Auty 10 months ago

  • Status changed from New to Feedback

Also available in: Atom PDF