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" <austinnichols@gmail.com>
To   statalist@hsphsun2.harvard.edu
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 <bob.yaffee@nyu.edu> wrote:
Raphael,
 Try
gen cumfreq=sum(etime)
 - RY

----- Original Message -----
From: Raphael Fraser <raphael.fraser@gmail.com>
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index