Statalist


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

RE: st: coding question


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: coding question
Date   Tue, 4 Mar 2008 16:54:30 -0000

The comma is illegal. 

Nick 
[email protected] 

Maarten buis

Looks ok

Ziad El-Khatib <[email protected]>

> 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index