Hi everyone,
I have a variable called MHI which takes on a value between 0 and 100, it was only recorded in the survey every two years from 2000 to 2010 and then again in 2015. There are also some missing observations for some individuals where for example they have only answered in years 2000, 2004 and 2010.
I'm trying to create a variable dMHI that measures the change in MHI from it's last value, but I can't seem to figure out how to do it.
The years run from 1997 to 2016 and the panel is in long format.
Does anyone have any tips?
Apologies if this isn't clear enough - my first post.
Thank you in advance
Related Posts with Creating change variable with unbalanced panel
Diagnostic Tests Panel DataDear all, I am working on my thesis using panel data in Stata but we never really discussed this in…
Obtaining milliseconds from -now()-According to the documentation: tc = now() where tc: number of milliseconds from 01jan1960 00…
Using asdoc, acum to store values that I can write laterI am trying to use asdoc to create a table with the data I want. I first use: Code: sum XYZ if tin…
Replacing column values with values of the same column by household idHi everyone, I have missing values in the variable "religion" for the year 2009. I want to copy the…
(1) areg, xtreg, reghdfe or reg and (2) time-trendGood morning, I am replicating the identification strategy of Lavy, Victor, and Analia Schlosser. 20…
Subscribe to:
Post Comments (Atom)
0 Response to Creating change variable with unbalanced panel
Post a Comment