Statalist


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

st: Sum of different values per column


From   Ziad El-Khatib <ziad.khatib@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Sum of different values per column
Date   Thu, 11 Dec 2008 13:26:40 +0100

Hi!
It is a cohort dataset, I want to sum one measurement over time, example below:

id            visit            pillcount           sumpc
101           1                 20                    .
101           2                 40                    .
101           3                 20                    80
102
etc..


Any tips how to create sumpc variable?


Thank you and best regards
ziad

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