I have a couple of variables that only appear in waves 4, 7, 10, 14, 18 (of a panel dataset of 18 waves). As such, these variables contain large numbers of missing values. I used the code (slightly amended from here)
Code:
replace dummy = L1.dummy if missing(dummy)
Help kindly appreciated.
Stata v.15.1
0 Response to Filling missing values on variables only appearing every four years in the panel
Post a Comment