Statalist


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

st: R: Patients missing visits


From   "Carlo Lazzaro" <carlo.lazzaro@tin.it>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: R: Patients missing visits
Date   Sat, 8 Mar 2008 10:46:00 +0100

Dear Ziad,
please take a look at what follows below (assuming: 10 patients=id; one
visit=first_visit):
------------------------------begin example---------------------------
set obs 10
obs was 0, now 10

. g id=_n

. g first_visit=1 in 1/5
(5 missing values generated)

. replace  first_visit=0 in 6/10
(5 real changes made)

. count  if  first_visit==0 & id!=.
    5

. list  if  first_visit==0 & id!=.

     +---------------+
     | id   first_~t |
     |---------------|
  6. |  6          0 |
  7. |  7          0 |
  8. |  8          0 |
  9. |  9          0 |
 10. | 10          0 |
     +---------------+
--------------------------------------end
example---------------------------HTH and Kind Regards,

Carlo

-----Messaggio originale-----
Da: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Per conto di Ziad El-Khatib
Inviato: sabato 8 marzo 2008 6.21
A: statalist@hsphsun2.harvard.edu
Oggetto: st: Patients missing visits

Dear STATA lister,
I am following cohort of patients over different time points (variable
= visit). I am looking at couple of indicators, for example vl and
weight at every visit.
I want to find
1) the number of patients who didn't come to every visit?
2) and to find which patients didn't come?

Any tips how to do it?

Thank you in advance and best regards
ziad
*
*   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/


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