Statalist


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

RE: st: coding question


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: coding question
Date   Tue, 4 Mar 2008 16:54:30 -0000

The comma is illegal. 

Nick 
n.j.cox@durham.ac.uk 

Maarten buis

Looks ok

Ziad El-Khatib <Ziad.El-Khatib@ki.se>

> You did kindly answer to this query before, i meant to confirm if i
> want to calculate the cumulative value for first 6 visits only, would
> the command be:
> 
>  bys id (visitn) : gen cumulad = ///
>  sum(pillmissed)/sum(pillspres) * 100, if visitn>=1&visitn<=6
>

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