Dear all,
I've replaced the missing values on a variable using the Lag-2 as follows:
I would now like to generate a flag variable for when eqtotinc_CPI18 has been replaced using the lag.
Thank you very much,
Diana
I've replaced the missing values on a variable using the Lag-2 as follows:
Code:
tsset idauniq year sort idauniq year replace eqtotinc_CPI18 = L2.eqtotinc_bu_s / CPI_base_2018 if missing(eqtotinc_CPI18)
I would now like to generate a flag variable for when eqtotinc_CPI18 has been replaced using the lag.
Thank you very much,
Diana
Comment