Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: cumulative in reverse order


From   "Lachenbruch, Peter" <[email protected]>
To   "statalist (E-mail)" <[email protected]>
Subject   st: cumulative in reverse order
Date   Fri, 6 Jun 2003 08:24:58 -0400

A clumsier method for getting a reverse cumulative could be

Replace x=-x
Cmul x,gen(xcum)
Replace x=-x
List x xcum

Or
Cmul x,gen(xcum)
Replace xcum=1-xcum


Peter A. Lachenbruch, Ph. D.
Director, Division of Biostatistics
OBE/CBER/FDA
Phone    (301) 827-3320
FAX        (301) 827-5218

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index