Hi all,
I need help in reshaping long (year2007-year2012). The desired outcome would be something like: AF-DE-2007-1 etc. where AF and DE are ISO codes for country1 and country2, 2007 is the year and 1 indicates yes.
The attached is my data.
This is the code I used but it says the variable id does not uniquely identify the observations:
reshape long year, i(ISO2C_COUNTRY1) j(Year)
Thank you!
Related Posts with Reshape error
Tabout export tables to word/csvI am trying to export a frequency table generated by tab2 or tabout. Code: local var a b c d e f …
advanced analytics for survey with low response rate?HI all, I am working with a survey where the response rate was 10%, so very low. So far I have stuck…
ml command for logit panel dataHi All: I am new to ml command. Before writing a more complicated code, I am testing the code on lo…
Displaying v values on xtline graphlocal y_title = "MIT Rate (%)" local x_title = "YearGroup" local title = "Top Marginal Income Tax Ra…
psmatch2 option failureI'm running Stata 14.2 on Win 7E I ran ssc install psmatch2 in anticipation of running models using…
Subscribe to:
Post Comments (Atom)
0 Response to Reshape error
Post a Comment