Stata Technical Bulletin
STB-48
gr34.1
Drawing Venn diagrams
Jens M. Lauritsen, County of Fyn, Denmark, [email protected]
venndiag produces a so-called Venn diagram based on variables in a dataset.
The Venn diagram routine has been expanded such that thickness of lines and pen choice can be changed. See Lauritsen
(1999) for further explanations.
Syntax
venndiag varlist [if exp [in range] [, label (str) show (str) missing gaτι(ammames^)
list (variables) print saving(⅜ lename) cl(#) c2(#) c3(#) c4(#) noframe
nograph nolabel tltitle(str) t2title (str) t3title (str) rltitle (str)
r2title (str) r3title (str) r4title (str) r5title (str) r6title (str) pen(#) thick(#)]
where the varlist must contain from 2-4 numerical variables and if generating a variable, that variable must not exist. Only the
new options are shown below. See updated help file for further information.
Added options
pen(#) indicates which pens to use in the graph, e.g., pen(123). The first one is for text, the second for rectangles, and the
third for the frame. The default is pen(123).
thick(#) indicates the thickness of pens on printing (for Windows 95). The default is thick(995). To obtain a thicker frame,
reverse the order of the numbers, i.e., thick(559). Note the link to pen(); for example, pen(456) must be followed by
thick(111995) to make pen 4 and 5 thickness 9 and pen 6 thickness 5. The first three l’s are not used in this case. (The
pen number is defined by it’s position in thick().)
Historical note—extension to STB-47
Another article by John Venn (1834-1923) has been located, such that the earliest publication by him on the subject most
likely was 1880. See reference list.
Acknowledgment
Thanks to Ph. D. M. D. Charlotte G. Mortz for testing and comments and to N. Cox for hinting at whom J. Venn was.
References
Lauritsen, J. 1999. gr34: Drawing Venn diagrams. Stata Technical Bulletin 47: 3-8.
Ruskey, F. 1997. A survey of Venn diagrams. The Electronic Journal of Combinatorics 4: DS#5. (available at: http://sue.csc.uvic.ca/~cos/
venn∕)
Venn, J. 1880. On the diagrammatic and mechanical representation of propositions and reasonings. The London, Edinburgh, and Dublin Philosophical
Magazine and Journal of Science 9: 1-18.
—-. 1881. Symbolic Logic. London: Macmillan.
gr35 Diagnostic plots for assessing Singh-Maddala and Dagum distributions fitted by MLE
Nicholas J. Cox, University of Durham, UK, [email protected]
Syntax
psm varname [if exp] [in
qsm varname [if exp] [in
pdagum varname [if exp] [in
qdagum varname [if exp] [in
range] [, grid graph-options]
range] [, grid graph-options]
range] [, grid graph-options]
range] [, grid graph-options]