Statalist


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

RE : st: AUC above a fixed value


From   [email protected]
To   [email protected]
Subject   RE : st: AUC above a fixed value
Date   Tue, 26 Aug 2008 12:45:29 +0200

Thank you, but my problem is to create the new time variable, because time
values 1 and 2 have changed.

I need a new time variable (time_101) 

time_110    hem_101
   0       6
  x1       0
  x2       0
   3       4
   6       15
   12      11
   18      8
   24      18

Where x1 is between 0 and 1 , and  1<x2<3


-----Message d'origine-----
De : [email protected]
[mailto:[email protected]] De la part de Ronan Conroy
Envoy� : 26 August 2008 12:28
� : [email protected]
Objet : Re: st: AUC above a fixed value


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/


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