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 run the seemingly unrelated regression? and how to compare the coefficients?Hello, suppose I have two regression using panel data random effect and cluster the error term Model…
gan- Hansen Test Result: coefficients are exactly identifiedDear All, While running the diagnostic command for my dynamic panel data analysis, the sargan-hanse…
Making box plots more visibleHello I'm a stata newbie with several questions which I will be posting subsequently in this forum …
How to Calculate the respondents marital status (Married and widowed) using relationship Relationship of person to household headHello, everyone I am having a cross-sectional data on the relationship of the person to the househol…
lpoly estimates for panel dataHello, I want to use the lpoly command to smoothen the outcome variable in a panel. The question i…
Subscribe to:
Post Comments (Atom)
0 Response to Reshaping Long Data Issue
Post a Comment