Hello I am trying to transform my wide data (5 countries,3 variables, quarterly data from 1966-2021)into long (panel) but when I try to run the command reshape long GDP CPI REC, i(ID) j(years) ,I get either: variable id does not uniquely identify the observations or variable years contains all missing values. I am really confused because I had approximately the same format in another dataset and reshape worked just fine.
Thank you in advance
Related Posts with HELP-Variable id does not uniquely identify the observations & variable years contains all missing values
Trouble with interpolating data: code is interpolating non-missing dataHi everyone, I am trying to interpolate panel data using this code: Code: ipolate v2pesecsch year,…
How to remove all characters that are not part of a predefined list?How can I remove from a STRING VARIABLE all characters that are not part of a predefined list? For e…
Extracting macro in a loopDear Statalist Users, A much simplified version of my current dataset is as follows: Code: * Exa…
Individual fixed effects vs. school fixed effectsHi all, I am deciding between a school and year fixed effects model and an individual fixed effects…
How to calculate index value for eq5d pleaseQuestion …
Subscribe to:
Post Comments (Atom)
0 Response to HELP-Variable id does not uniquely identify the observations & variable years contains all missing values
Post a Comment