I am trying to collapse this data but I have continuously gotten errors regarding the i and j not being unique. Here is a snippit of the dataset:
country variable total
AUS CAP 20,525
AUS CAP 1,206
AUS CAP 1,475
AUS CAP 79,601
AUS CAP 9,928
AUS CAP 553
AUS CAP 1,180
AUS CAP 1,080
...
AUS EMPE 57
AUS EMPE 58
AUS EMPE 31
AUS EMPE 17
AUS EMPE 61
AUS EMPE 50
I am trying to get it to read like this with these variables:
Country CAP EMPE
With the totals for each. If anyone can help, I'd appreciate it. I don't know where to start!
Related Posts with Reshaping Long Data Issue
How to compare two coefficients over 2 equationsHello good people, I have a question regarding my approach of analyzing data for a project. # I have…
HH dataHello please, am new with stata. i want to do household analysis, please what is the way forward …
Cross-sectional regressionHello guys, I was wondering if anyone had experience with such regressions. I have a panel data. W…
Hierarchical Cluster Analysis (Centroid Linkage): currently can't handle dendrogram reversalsHello Everyone, I am having an issue displaying a hierarchical cluster analysis dendrogram using ce…
Merge weekly and daily dataHi everyone, I am new here so I will try my best to make my question as clear as possible. Hope you …
Subscribe to:
Post Comments (Atom)
0 Response to Reshaping Long Data Issue
Post a Comment