[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Re: boxplot
Olivia Keiser <Olivia.Keiser@hospvd.ch>
Is it possible to omit the extreme values in the boxplot?
I've found the option 'symbol(i)' where the outliers are not plotted
the axis scale still remains large (and with yscale I can't make it
If I include the 'if', the graph looks nicer, but all the extreme
are not included to calculate the boxplots.
I would need something that includes all the values for the
but only plots the boxplots on a reasonable scale (like tmax() in sts
>>> I am not sure that I approve of this!
However, it would seem that you would need to copy
your variable into another
gen myvar2 = myvar
and to replace
1. the maximum (and any other high extreme values) by a value
which is the upper quartile + epsilon.
2. the minimum (and any other low extreme values) by
a value which is the lower quartile - epsilon.
That way, the median and the quartiles, and thus the length of the
and thus the lengths of the whiskers would be unchanged and your
extremes would be hidden by the whiskers.
If you are doing this
graph myvar, by(byvar)
you will need to do this for each group of byvar.
I haven't tried this but I think it should work.
* For searches and help try: