Hello, I am trying to set a panel data but I keep getting this message:
My data is collected quarterly from 2015-2018 and only once in the baseline year 2014 (having the label 0) for every household.
I tried some solutions suggested in this forum such as duplicates report but I don't want to delete any observation. I also tried this: https://www.statalist.org/forums/for...hin-panel-r451 which is:
It worked when I identified the panel only by the id but I wonder if it is correct since it ignores the time identifier part.
Would appreciate any help!
Code:
. xtset id year repeated time values within panel r(451);
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float id int year byte quarter 1 2016 3 1 2016 1 1 2016 2 1 2016 4 2 2018 2 2 2016 3 2 2015 2 2 2017 1 2 2015 1 2 2015 4 end label values id id label def id 1 "A106", modify label def id 2 "a001", modify
Code:
xtset id
Would appreciate any help!

Comment