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
Help with xtreg, time fixed effects, local authority fixed effectsHi, I am new to Stata and therefore would appreciate some help with actually running my panel regres…
Slope coefficients for different quintiles of ranksHello all, I have an unbalanced panel data set on funds and their respective 3 Factor alphas for ea…
Binscatter plot warningHello, I just want to know whether getting the following warning is normal for binscatter plots, I …
Hardware to optimize processing large text filesHi list, I'm buying new machines for my lab and would like to optimize the speed with which we proce…
nehurdle available on SSCHi everybody, I would like to announce that thanks to Kit Baum, nehurdle is now available at SSC. …
Subscribe to:
Post Comments (Atom)
0 Response to Reshaping Long Data Issue
Post a Comment