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)
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!
0 Response to "Cumul" based on last year
Post a Comment