Statalist


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

st: Re: sum across observations until a certain cutpoint


From   "Amanda Botticello" <abotticello@kmrrec.org>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: sum across observations until a certain cutpoint
Date   Sun, 09 Nov 2008 12:46:56 -0500

IT's a "wide" dataset...subjects completed up to 200 items in a task, and we recorded the number of seconds it took to complete each item.  I can create a sum of the total number of items completed and total time; now I want to find out how many items each individual completed in 60, 90, and 120 seconds.  Does that help?

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
email: abotticello@kmrrec.org


>>> "Martin Weiss" <martin.weiss1@gmx.de> 11/9/2008 11:00 AM >>>
Well, if you want the running sum, look at -help sum()-. But maybe you could 
give us a peek at your data structure, that would assist in answering your 
question...

HTH
Martin
_______________________
----- Original Message ----- 
From: "Amanda Botticello" <abotticello@kmrrec.org>
To: <statalist@hsphsun2.harvard.edu>
Sent: Sunday, November 09, 2008 3:12 PM
Subject: st: sum across observations until a certain cutpoint


>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
> email: abotticello@kmrrec.org 
>
>
>
> 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:
> *   http://www.stata.com/help.cgi?search 
> *   http://www.stata.com/support/statalist/faq 
> *   http://www.ats.ucla.edu/stat/stata/ 
> 


*
*   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/


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:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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