Hi
Apologies if this query is very simplistic. I am using UKHLS data on individuals to look at changes in wellbeing as a result of commuting duration. In order to do so I wish to obtain a sample from the dataset for whom the value of reported commute duration (jbttwt) changes across different waves (years) of the data by say 5 mins or more. I have the variables:
pidp: person identifier
jbttwt: commuting time in mins (note: in appending my data I removed the existing wave prefix on all variable names so there is now multiple recorded values of jbttwt for one pipd reflecting different waves)
wave: a variable (created during the appending) that captures which wave that row of data is from i.e. which year's jbttwt is referred to
What command(s) can I use to create a variable that captures each person's commute change between waves in order to select a sample of only those who experience a change of say 5 mins?
Many thanks for any help.
0 Response to Change in a variable's value, for the same individual, across years of data
Post a Comment