Hi,
I have the following sample of data. I have an indicator of 1 and 0 in once column and I want to compute the sum of consecutive 1s (i.e the cumulative column) for each ID.. How can I do that in stata? Array
Related Posts with Computing a cumulative score
Fine-tuning the legend positionI am looking for a proper parameter responsible for vertical positioning of the legend in the twoway…
Serial CorrelationDear researchers, I am using the following code Code: xtreg GG SIZE LEV ROA i.year, fe cluster (C…
graphHi all, I have been away from using stata for a couple of years hence am asking a perhaps very stup…
incorporating RE in xtglsDear statalisters, I would like to carry out the GLS estimation for random effects using Stata. I h…
Copy values from one variable to other cases in same groupDear Statalist, I'm using version 14.2 for windows. I have the following dataset (short example, th…
Subscribe to:
Post Comments (Atom)
0 Response to Computing a cumulative score
Post a Comment