Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Boxplots - avoiding the box in a strata with a small number of observations


From   Richard Hiscock <richardjhiscock@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Boxplots - avoiding the box in a strata with a small number of observations
Date   Tue, 4 Sep 2012 10:37:51 +1000

Hi Statalisters,

I have continuous data (plasma level of drug) in patients, who received a dose determined by body weight (in five strata), measured at three time points.
Whilst the lower strata have 40+ patients the highest two levels the number of patients is very small n = 5 & 2. 
To graphically present the plasma levels I would prefer to show individual data points but using dotplots however the command doesn't seem to allow for over commands (with data now in the long form).

dotplot plasma_level , over(time) over(wtstrata) 

I can achieve close to what I want using boxplots, however I feel that boxes for the strata  with 5 & 2 only observations is not appropriate. Is there anyway to have individual data points displayed for these strata? The command I'm using in Stata 12 is 

gr box  Baseline Firstdose Thirddose , over(wtstrata) 

Any help or other presentation suggestions would be much appreciated

thanks Richard Hiscock
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index