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
Adding random intercepts in CMP slows down estimation a lot and makes required RAM exceed 500GBI'm running a 4-equation model (2 x Heckman selection model) with CMP and I want to add random inter…
Replacing missing values with already existing matchHello, I have a data with two variables - company name, and gvkey. Each company name has a unique g…
Total value per year by number of variables without missing observationHi, I would like to find out the mean value by dividing the total value per year by number of varia…
Estimation for a combination of countriesHi I have a data on number of countries and I want to run the regression on combination of countrie…
Comparing observation value of VAR with values of VAR across all observationsI'm analyzing the association between a public policy of interest and various indicators of job qual…
Subscribe to:
Post Comments (Atom)
0 Response to Group by order of event occurrence
Post a Comment