Age groups
Creates agegr5_dv, agegr10_dv, agegr13_dv
User-contributed syntax shared by researchers, providing practical examples, reusable code and approaches developed by the research community.
Creates agegr5_dv, agegr10_dv, agegr13_dv
Creates big5a_dv, big5dv, big5e_dv, big5n_dv, big5o_dv
Creates bmi_dv
Commonly-used commands to work with data.
In this example we will distribute household level information to individuals in those households. We can do this by merging household level file (such as w_hhresp) with an individual level file (such as w_indresp) within the same Wave.
Combining individual- and population-level data using R to develop a Bayesian parity-specific fertility projection model
Stata syntax to create some variables related to work hour loss using UKHLS Covid-19 survey data
To match individual level files across two waves into a wide format, do the following (for more waves add wave specific prefix in the foreach statement)
In this example we will summarise individual level information within a household (number of 18-24-year-olds in the household) from an individual level file and then add it to the household level file.
Working-Life Histories in Understanding Society and BHPS using Stata
Sign up to our newsletter