Statalist


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

RE: st: Graph bar code


From   "b. water" <barleywater@hotmail.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Graph bar code
Date   Sun, 9 Mar 2008 16:14:56 +0000

ziad,

my stata is 8.2 so my suggestion may need modifications if you are using a different stata version.

if your data set-up is like this:

regimen1 regimen2 visit
8.2 5.1 1
9.2 7.3 1
3.1 4.3 2

and so on (regimen being %), then you are looking at

graph bar (asis) regimen1 regimen2, over(visit)

if you want to know how many patient have adherence data presumably what you want to know is how many do not have i.e. dealing with missing values, so maybe something along these lines:

-codebook-

or

list if regimen1>=.

hth,
bw


> Date: Sat, 8 Mar 2008 12:25:07 -0800
> From: Ziad.El-Khatib@ki.se
> To: statalist@hsphsun2.harvard.edu
> Subject: st: Graph bar code
>
> Dear STATA lister
> it might be simple/stupid question to ask.
> I have 2 variables to measure patient adherence to drugs 'regimen1'
> and 'regimen2'.
> both variables contain adherence %.
>
> I want to know how many patients have adherence data under every
> variable, so i am running code
>
> graph bar (count) regimen1 regimen2, over visit
>
>
> it gives higher number than expected.
>
> Any tips how to fix 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/

_________________________________________________________________
Shed those extra pounds with MSN and The Biggest Loser!
http://biggestloser.msn.com/
*
*   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