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
Summary stats with panel data: obtaining both N (overall obs.) and n (group obs.) by ethnic groupsDear all, I am trying to do some simple mean summary statistics for each variable with panel data (…
reshape / transpose large dataset for mergingI am constructing a large timeseries dataset, with cases arranged around WDI_code (World Development…
Determine how many respondents answered a question where they could select multiple responsesI am no STATA guru, so this may be simple, but I cannot find guidance anywhere (probably because I d…
getting error doing structural testHello all, I am testing for structural breaks using estat sbsingle. I am specifically focusing on th…
Heckprobit regression with dummy variablesI have done a heckprobit regression on a cross section data. My main explanatory variable is a distr…
Subscribe to:
Post Comments (Atom)
0 Response to Group by order of event occurrence
Post a Comment