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.
Related Posts with Change in a variable's value, for the same individual, across years of data
Conventional or Bootstrap or Jackknife Standard Errors in Between-Effects EstimatorHi, I am trying to estimate the impact of directors' remuneration on firm performance. My unbalance…
Inter-rater correlationHi. I have a dataset where two blinded outcome assessors independently scored a specific task. The t…
Export twoway tables to Excel with Stata 12.1Hello, I know my stata version is quite old, but this is what I work with. Is there a possibility to…
Interpretation of coefficients in first-differenced vs level specifications with and without additional variables in levelsIs there an intuitive explanation for why the interpretation of the coefficients in a first-differen…
RE: Standard deviation of the residualI ran logistic regression of y. I saved the residuals after estimating the regression. Step 1: logi…
Subscribe to:
Post Comments (Atom)
0 Response to Change in a variable's value, for the same individual, across years of data
Post a Comment