Support #2287
openba_xewght not found
60%
Description
I am using the UKHLS data to do survival analysis. I did not use the BHPS data, and I did not use survey weight. But, when I run the st-command, for example, stsum, stcox, the STATA always report an error "ba_xewght not found".
For example:
stset duration,failure(event) id(pidp)
stsum
What are the possible reasons of this error? Is ba_xewght a variable in UKHLS? Thanks.
Updated by Understanding Society User Support Team 1 day ago
- Status changed from New to In Progress
- % Done changed from 0 to 60
Hello,
Please specify the waves of data you are using for the survival analysis. Ideally you should use the longitudinal weight from the last wave that you are including in your analysis, relevant for the samples included in your analysis. The weight you have mentioned is for analysing data of enumerated individuals from Wave 1 of the BHPS.
To know more about weights, and how to select the right weights for your analysis see:
https://www.understandingsociety.ac.uk/documentation/mainstage/user-guides/main-survey-user-guide/weighting-guidance/
https://www.understandingsociety.ac.uk/research/publications/working-paper/understanding-society/2024-01/
Best wishes,
Understanding Society User Support
Updated by Understanding Society User Support Team 1 day ago
- Private changed from Yes to No