On 26 Aug 2008, at 08:46, [email protected] wrote:
I need to calculate a AUC of "hem" with 8 time measurements
time hem
0 116
1 97
2 101
3 114
6 125
12 121
18 118
24 128
But I need only AUC above the threshold of hem=110
gen hem_110 = (hem-110)*(hem > 110)
this multiplies all values where hem is <= 110 by zero.
Ronan Conroy
=================================
[email protected]
Royal College of Surgeons in Ireland
Epidemiology Department,
Beaux Lane House, Dublin 2, Ireland
+353 (0)1 402 2431
+353 (0)87 799 97 95
+353 (0)1 402 2764 (Fax - remember them?)
http://www.flickr.com/photos/ronanconroy/sets/72157601895416740/
P Before printing, think about the environment
*
* 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/