Dear Forum,
I am rearranging my dataset to fit my method, but I got stuck trying to combine rows that have the same inputs. As you can see in the picture, the first 255 rows have the same observations. I want to combine these 255 rows into 1 row. The same for all the other rows. So I would go from 263,536 rows to 2365 rows.
Thanks in advance,
Kind regards,
Caro
Array
Related Posts with Combining rows in stata
Variable SEXHello!!!! I would like you to help me: I want to generate the sex through the names, I know that it…
Change in Change (Athey Imbens 2006) with multiple time periods and RobustnessHi I am trying to do robustness of my DD estimation with multiple time periods in data (both before…
Count Number of Each Age Observation Across Years and Not Include Certain Data ObservationsDear all, I am using Stata 16, on mac. I have taken a snapshot of dataset I am working with. Array …
How to merge parts of panel data by idHello I have the following panel data of returns: Code: * Example generated by -dataex-. To insta…
Count Number of Each Age Observation Across Years and Not Include Certain Data ObservationsDear all, I am using Stata 16, on mac. I have taken a snapshot of dataset I am working with. Array …
Subscribe to:
Post Comments (Atom)
0 Response to Combining rows in stata
Post a Comment