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
Count frequencies of (binary) variable and merge these to original datasetThe following provides one solution to the problem. However, it seems unnecessarily complicated to m…
ciplotI tried to use ciplot to plot two curves (var1 and var2) on the same graph. However, none of the mea…
Convert variables to numericHello, I have the following dataset (below) and I want to convert the variables "tfertrate", "mofert…
Descriptive Statistics by SegmentHi all, I have ratings data (ratings are 0-5) and I am trying to see what what % of users never rat…
Export labels from alpha output to ExcelI am estimating the alpha of several variables. I have specified asis, item, and label. I need to be…
Subscribe to:
Post Comments (Atom)
0 Response to Combining rows in stata
Post a Comment