Hi StataList,
I'm attempting to collapse two variables, "from_gstin" and "to_gstin", into a form where there is not multiple occurrences of the same two observations. For example, observations 1-3 have the same "from_gstin" and "to_gstin" three times in a row, I'd like this to just show once. Is there a best way to collapse this data down?
Many thanks,
TjspenceArray
Related Posts with Collapsing two variables that occur multiple times
Help for replacing parts of a string variableDear community, I want to clean a string variable that contains the name of a bank. Sometimes, it a…
Plotting Groups of Fixed Effects Coefficients, By Group, By YearHello all, I realize my title might be a little dizzying, but I wasn't sure how else to phrase it. …
failing to rename a variable by its labelDear all, I am interested in renaming several variables by its label (see an example below), howeve…
Robustness checks - post regression graphhey stata friends and family, After I use rreg / mmregress / mregress, I want to create a scatter pl…
Parallel trends assumption test for a two way fixed effect model (omitted treatment variable)Hi everyone, I want to test for the parallel trend assumption in the difference in differences. My …
Subscribe to:
Post Comments (Atom)
0 Response to Collapsing two variables that occur multiple times
Post a Comment