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/