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 calculating the means for long form dataHi, I'm working with long form data which contains information on financial outcomes (income, total…
Label variable list (varlist) based on labels of another varlistI want to label a list of variables using the same labels as another list of variables. In the table…
xtpoisson fixed effects when both endogenous variable and IV are binaryDear all, I am using Stata 15.1 and I would like to conduct panel poisson iv regressions for 67 cou…
Tracking a particular variable in a panel dataset over timeHi everyone, I have the following panel dataset. I would like to track ASINs that change from being…
Different variables with different datesHello, I want to make the portfolio sort analysis and extract the idiosyncratic volatility, However…
Subscribe to:
Post Comments (Atom)
0 Response to Reshaping Long Data Issue
Post a Comment