Hello,
I am running a script to automatically generate some large amount of boxplots, e.g.
<hansl>
list DistEff8 = DistributiveEfficiency_min .. DistributiveEfficiency_MAE #The list of the
variables
"Distributive Efficiency" <- boxplot DistEff8 --output=display { set ylabel
"Distributive efficiency"; set xlabel ""; set title "Distribution
of distributive efficiency"; unset label; set xtics ("min" 1,
"1Q" 2, "median" 3, "3Q" 4, "max" 5,
"mean" 6, "RMSE" 7, "MAE" 8) scale 0.0; }
< /hansl >
Now it might sometimes be the case (especially if I restrict the sample) that some of
these values, like the median, become constant expressions. Atm I need to refine the
script manually (excluding the constant variable) each time this happens. At the same
time, I lose all the information regarding the median, say, in the boxplot that is
produced. Is there a way to allow the boxplot command to draw a "constant"
boxplot?
I guess a work-around would be to simply add a very small random number, say U=1e-100, to
each of the values of the series before sending it to the boxplot. Unfortunately I do not
know how to automate this. Is there an easy way to provide some function like
"NonConstList(list or series) " which I could wrap around my list before
plotting (and that does not alter the original data, i.e. creates a temporary new list
each time)?
Something like:
<hansl>
list DistEff8 = DistributiveEfficiency_min .. DistributiveEfficiency_MAE #The list of the
variables
"Distributive Efficiency" <- boxplot NonConstList (DistEff8) --output=display
...
< /hansl >
PS: I possed this question a few days ago but I guess it wasn't recognised because I
added it to an old thread. Sorry for that
Many thanks!
Frederik
------------
Frederik Schaff, Dipl.-Volkswirt
University of Hagen
Department of Business and Economics
Chair of Economic Theory (Prof. A. Endres)
Universitätsstraße 11 (TGZ)
58097 Hagen
Phone: +49 (0) 2331 987-4454
E-Mail: Frederik.Schaff(a)FernUni-Hagen.de
http://www.fernuni-hagen.de/wirtschaftstheorie/en/team/frederik.schaff.shtml