I'll look at -groups- to see if this functionality can be added.
Nick
[email protected]
[email protected]
Thanks to Martin, Maarten and Nick for your help!
There are many ways to calculate reverse cumulative distributions in a do file and I already have used that. What I was looking for was a quick and easy solution. I often have people on the phone asking for results and it occurred to me that I couldn't produce this kind of data on the fly (calculation in the head is one option but may be error-prone while talking on the phone).
- "cumul, equal" works, but requires some additional programming.
- "groups, show(rvpercent)" is very flexible but - as far as I see - not exactly what I wanted. Options like RVpercent, rpercent or Rpercent produce reverse cumulative distributions of the type "percentage of cases bigger than x" , not "bigger than or equal to x". It works but for "equal or bigger" one has to pick the result from the previous line.
- reversecum works fine. It's a bit slow (compared to the tabulate-command) with big datasets because of the use of preserve, contract and restore, but produces what I was looking for.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/