Support #2249
openCode Creator for BHPS data files
50%
Description
Hi,
I am trying to use the BHPS and UKHLS data files to observe individuals across childhood and into adulthood. I have used the code creator to extract variables from the UKHLS folder, however the code generated does not allow me to access BHPS files. I have of course changed the directory to be able to access the bhps folder rather than the UKHLS one, but the naming conventions of the waves seem to still be an issue in the code that I am having trouble fixing manually. I wondered if there is a standard BHPS variable code that has been made to extract these variables?
Many thanks,
Serena
Files
Updated by Understanding Society User Support Team 3 days ago
- File code3.do code3.do added
- Status changed from New to Feedback
- % Done changed from 0 to 50
- Private changed from Yes to No
Hello Serena,
Regarding the code creator, it was initially designed for UKHLS data. However, I've adapted the syntax to incorporate BHPS waves as well, and I've attached the updated code.
As an example, the code includes the variable "lfsat1" for BHPS and "sclfsat1" for UKHLS. You can modify the specific waves you need by adjusting the following line:
local allWaves = "ba bb bc bd be bf bg bh bi bj bk bl bm bn bo bp bq br a b c d e f g h i j k l m n"
The wave identifier variable, "wavename", ranges from 1 to 18 for BHPS and 19 onwards for UKHLS. Please remember to include BHPS weights if your analysis requires them.
Finally, you'll need to update the file paths within the code to reflect the locations where your data is stored.
I hope this information is helpful.
Best wishes,
Roberto Cavazos
Understanding Society User Support Team