Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Venn diagram


From   David Airey <[email protected]>
To   [email protected]
Subject   Re: st: Venn diagram
Date   Wed, 5 May 2004 10:56:07 -0500

on 05/05/2004 14:43, James Xiao at [email protected] wrote:

> Thanks for your information, Guys!
>
> I'm using Stata 8.2 with windows XP. Acctually, I found an interesting
> thing after I posted here. When I add the option "square", such as
> venndiag rep78 foreign, sq, it works fine. But options "circle" and
> "ellipse" don't work. Any pointers? Thanks!

-venndiag- V 2.13 working as advertised on OS X 10.3.3. Options work
correctly for all shapes (circles are replaced by ellipses for 4 variables,
as advertised).
Works on my Panther PowerBook too. Stata/SE 8.2. But with some strange behavior.

One thing I did notice was that a "more" option comes up midway through the drawing of the graph when the default circles are used, and to complete the graph, you must deal with the more (hit space, since the results window will not come forward). But with the square options, it runs right through. There also seems a different behavior after that more, with regard to saving temp files.

-Dave


. which venndiag
~/ado/plus/v/venndiag.ado
*! Venn Diagram graphs V 2.13 JM.Lauritsen (STB-xx: gr34.4)
*! v 2.13 correction of clear versus drop _all for Stata8
*! v 2.12 correction related to tempfile
*! dec1999 enhanced design (Stata 6 STB54, gr34.3 v2.11)
*! (Martin Villumsen sorted out mathematics on ellipses)
*! STB-47/48/49 gr34.2 (stata 5)


. venndiag rep78 foreign, square
______________________________________________________________________

Venn diagram of variables: rep78 foreign
File: /Applications/Stata/ado/base/a/auto.dta ( 3 Oct 2002 )

Outcome Variable and label
A: 1 rep78 Repair Record 1978
B: 1 foreign Car type

74 Records in file
5 Records excluded by missing values
__
69 Records in Diagram:
Counts for combined variables:
----------------------------------------------------------------------
A | 2 3 % (rep78 == 1)& (foreign != 1)
B | 21 30 % (rep78 != 1)& (foreign == 1)
AB | 0 0 % (rep78 == 1)& (foreign == 1)
-- | 46 67 % (rep78 != 1)& (foreign != 1)
----------------------------------------------------------------------
______________________________________________________________________

. venndiag rep78 foreign
______________________________________________________________________

Venn diagram of variables: rep78 foreign
File: /Applications/Stata/ado/base/a/auto.dta ( 3 Oct 2002 )

Outcome Variable and label
A: 1 rep78 Repair Record 1978
B: 1 foreign Car type

74 Records in file
5 Records excluded by missing values
__
69 Records in Diagram:
Counts for combined variables:
----------------------------------------------------------------------
A | 2 3 % (rep78 == 1)& (foreign != 1)
B | 21 30 % (rep78 != 1)& (foreign == 1)
AB | 0 0 % (rep78 == 1)& (foreign == 1)
-- | 46 67 % (rep78 != 1)& (foreign != 1)
----------------------------------------------------------------------
______________________________________________________________________
file /tmp/S_00352.00001b saved

***more*** came up here

obs was 0, now 1001
(1978 Automobile Data)
file /tmp/S_00352.00001c saved
obs was 0, now 1001
(1978 Automobile Data)

.

*
* 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index