Statalist


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

Re: st: Correlation between dep and indep var over time?


From   Craig Anderson <clanders@uci.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Correlation between dep and indep var over time?
Date   Thu, 9 Aug 2007 13:28:51 -0700

Ziad,
You need to create an indicator for missingness, having a value of 1 for missing and 0 otherwise. For a numeric variable, this could be:

missingtablets=tablets>=.

Then compare missingtablets with other variables. Type 'help missing' for the details of operations with missing values.

Craig L. Anderson, MPH, PhD
Research Specialist
Dept. of Emergency Medicine
University of California, Irvine



On Aug 9, 2007, at 7:43 AM, Ziad El-Khatib wrote:


Hi,
I have data for patients taking medicine over time, where I want to
see if there is correlation between 'missing tablets' and 'amount of
RNAs' over the visits of patients to the clinic 'visit'.
Any tips how to do it in STATA?
Thank you 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