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
Complicate box plotHii guys, I have a database made as follows: Code: * Example generated by -dataex-. To install: s…
Expressing all other variables in deviation from the cross-section mean of 'year' variableHello everyone, I am a STATA novice and still getting to grips with the software. I am running a l…
test of endogeneityHow to find which variable is endogenous before finding an instrument for it (before 2sls test)? …
Diff in Diff by Hand and StataHi everyone, I'm an undergrad and trying to understand what Stata does when I run a diff-in-diff co…
Removing duplicatesHi Statalist, I have this variable: Code: * Example generated by -dataex-. To install: ssc instal…
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