Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Computing a cumulative frequency variable


From   "Austin Nichols" <[email protected]>
To   [email protected]
Subject   Re: st: Computing a cumulative frequency variable
Date   Thu, 11 May 2006 14:15:33 -0400

Raphael,
. bys id: gen cumfreq=sum(etime)

On 5/11/06, Robert A Yaffee <[email protected]> wrote:
Raphael,
 Try
gen cumfreq=sum(etime)
 - RY

----- Original Message -----
From: Raphael Fraser <[email protected]>
Date: Thursday, May 11, 2006 1:31 pm
Subject: st: Computing a cumulative frequency variable

> I have the following variables and would like to generate or compute
> the cumulative frequency of etime. The end result should look like
> this:
*
*   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