Dear all,
We are trying to make a new variable which gives every number within a consecutive series of numbers a ''name'', which is the highest number within that consecutive series. So each consecutive series starts with a ''1'' and we need to attach the highest number to every number within that series. To make this more clear see our example underneath;
Var 1 - NewVar
1 4
2 4
3 4
4 4
1 8
2 8
3 8
4 8
5 8
6 8
7 8
8 8
1 4
2 4
3 4
4 4
This might be a very basic question but we somehow can't figure out how to do it. We would be very thankful if anyone could help!
Kind regards,
Jonathan
Related Posts with Name groups of consecutive number series
ivreg2h warningHi, I am trying to run an IV regression with internal instruments only (as per Lewbel 2012). My equ…
Merging us patentsview with IPC codes, multiple ipc codes for one patent_idI want to calculate the radicalness of patents, so I am working with the backward citation. To calcu…
Bayestest model not showing posterior probabilitiesDear Stata Users community, I am trying to compare the posterior probabilities of a series of ologi…
BOX PLOT WITH INDIVIDUAL OBSERVATION--How to writeHi to everybody. I have to do a boxplot with individual observations using the dataset below: clea…
estimating targets using DEAHello, I am looking to estimate target output values for inefficient DMUs using an output oriented …
Subscribe to:
Post Comments (Atom)
0 Response to Name groups of consecutive number series
Post a Comment