[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: sum across observations until a certain cutpoint

From   "Amanda Botticello" <>
To   <>
Subject   st: sum across observations until a certain cutpoint
Date   Sun, 09 Nov 2008 09:12:08 -0500

I have a dataset of test items and the time (in seconds)to complete each item.  I need to create a variable that sums the time variables up to a certain number -- i.e., 60, 90, 120 seconds.  Is there a way I can use the egen newvar = rowtot (time*) command to count up to 60 seconds, etc?

Amanda L. Botticello, PhD, MPH
Outcomes Research Scientist
Kessler Medical Rehabilitation Research and Education Center
Assistant Professor
Department of Physical Medicine & Rehabilitation
UMDNJ-New Jersey Medical School
1199 Pleasant Valley Way
West Orange, NJ  07052
phone: (973)243-6973

The information in this transmission is intended for official use of the Kessler Foundation.  It is intended for the exclusive use of the persons or entities to which it is addressed.  If you are not an intended recipient or the employee or agent responsible for delivering this transmission to an intended recipient, be aware that any disclosure, dissemination, distribution or copying of this communication, or the use of its contents, is strictly prohibited.  If you received this transmission in error, please notify the sender by return e-mail and delete the material from any computer.

*   For searches and help try:

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