Hello,

I try to use the command "cumul", but based on the distribution of the last year.

Here is an example of my code, if the code is based on the distribution of the current year:
Code:
bysort year: cumul var1, generate(var1_cumul)
But now I try to do the same thing, but based on the distribution of last year.

For example, the command - astile - from Attaullah Shah has a similiar option with the option qc(string). This option can be used if the qunatile breakpoints need to be based on a subset of the data.

Is something like this possible with the command - cumul -?


Any help is much appreciated!