Hi,
It may be a relatively simple problem to order dates, but I cannot find an elegant solution.
I have the dates of several events. The events can occur in any order.
I would like to identify for each observation, the order of each event, and report event_1 1st n,%, event_1 2nd n,%, event_1 3rd n,%....., event_2 1st n,%, event_2 2nd n,%, ….. etc.
My solution is clumsy, loop by each observation, to identify event position in the sequence of events, 1st,2nd, 3rd etc.
Thank you,
Horia
Related Posts with Group by order of event occurrence
Using Log in a Box-Cox TransformationHi everyone, I have a question regarding statistics in general, rather than STATA- and was hoping I…
Strange behavior of factor interactions using the 'o().variable' notationHello everyone, I ran some regressions with factorized interaction variables using the o().`varname…
Weighting with mixed commandHello, I am trying to weight observations when estimating growth models in Stata, and I am having t…
Issues with legend when exporting graphs as pdfHi, When I export the following graph to pdf, the legend section is getting distorted. I am using S…
rangestat commandHello all, I need your help regarding rangestat command. I have a panel dataset with the panel dime…
Subscribe to:
Post Comments (Atom)
0 Response to Group by order of event occurrence
Post a Comment