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
Problem with fweight and bar graphsThis is probably an extremely elementary question and I am so sorry in advance. I have a dataset of …
Problem grouping hierarchical data into subset of the dataHello I am new to Stata and I am struggling to find the best command /code to the below data. I am …
Randomly removing observations from this dataset Oxford Knee scoreHi Any help would be appreciated. The data below is a small sample of a larger dataset. It has th…
Regression with Categorical Dummy VariableDear all, I would like to conduct the following regression: y = a + x1*(1-D) + x2*D + x3*(1-D) + x…
Test of equality for sibling correlations across groups mixedDear all, I am estimating sibling correlation using Stata's mixed command via REML for different gr…
Subscribe to:
Post Comments (Atom)
0 Response to Collapsing two variables that occur multiple times
Post a Comment