Hi,
I know this topic has been discussed several times already, however, none of the solutions seem to work for me.
I have the time series dataset for GDP that I got from the BEA. This is the screenshot from STATA.
[ATTACH=CONFIG]temp_17453_1585272953942_897[/ATTACH] I want to reshape it from wide to long and use this command in STATA:
reshape long GDP, i(GeoFips) j(year)
It gives me that "variable id does not uniquely identify the observations".
Any suggestions on how to deal with this problem?
Thank you,
Lena
Related Posts with Reshaping from wide to long
Chi-square-Tests: adjusted residuals vs. standardized residualsDear Statalisters, I performed a Chi-square test (see code below), which was not significant with m…
xtgraphGood morning, I use this command. I would like to ask you how can I chiange the colours of the line…
Interpretation of a Relative Risk Ratio in the case of a continuous variable (in log)?Hello everyone I am conducting a mlogit regression with three possible outcomes (the first one bei…
An empirical question of multilevel models; and how to buid a graph like this one in StataDear Statalist, I am using Stata 15.1 and I am estimating a three level model (time nested in firms…
Counting and categorizing the number of adults in the household using survey dataGood day, I am interested in counting and categorizing the number of adults in the household into t…
Subscribe to:
Post Comments (Atom)
0 Response to Reshaping from wide to long
Post a Comment