Hi all,
I have a question.
I have a dataset like the left table in my screenshot (small example). In this dataset, there are different combinations between origin and destination which each the number of employees working in each sector and the total listed.
Now I want to transform/reshape this dataset to the right table, where each origin is listed only once. For this origin, now the sum of all destinations that belong to that origin are listed.
The variables remain the same (S1, S2, S3, S4, S5, Total)
Thank you in advance!
Romy
Array
Related Posts with Taking the sum of some observations
Pesaran TestHi guys, I am running a fixed effects regression and wanted to test for cross-sectional dependence. …
OLS Regression with lagsHey! I am writing my bachelor thesis, studying the relationship between monetary policy and housing…
Mediation suregDear all, I am running the follwing STATA code from the example from this website: https://stats.id…
Help needed: Extracting data from different rowsHi all, I need some help in extracting data from a column. I am trying to find a way to do so witho…
Epidemiology analysisplease helm me with this case I dont know the syntax the data is on the attachment Estimate regress…
Subscribe to:
Post Comments (Atom)
0 Response to Taking the sum of some observations
Post a Comment