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
not sorted error for predict te, teI successfully ran xtfrontier for lagged and other variables in my analysis. I am using a large pane…
Interaction and factorial interaction have different significance levelI am trying to find out the effect of the interaction terms in my model. but i keep getting conflict…
Hansen-J-Test InterpretationDear Statalists I am actually doing a IV regression with one single endogenous regressior (penetrat…
instrumenting a binary endogenous regressorHello, I am trying to run a model with a binary endogenous regressor. I am still learning econometri…
How to calculate the number of posts and different categories for a certain user before time t?Hello, I encounter a question when building models in Stata. Data example: Code: * Example genera…
Subscribe to:
Post Comments (Atom)
0 Response to Reshape error
Post a Comment