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

st: Strange interaction between weights and the -connect()- option


From   Roger Newson <[email protected]>
To   [email protected]
Subject   st: Strange interaction between weights and the -connect()- option
Date   Tue, 14 Sep 2004 19:20:56 +0100

Hello All

Has anybody else experienced a strange interaction between weights and the -connect()- option under -graph twoway-? I find that weights can cause the -connect()- option not to work correctly. (I use the very latest Stata as of today, ie version 8.2 with the executable of 23 Jul 2004 and the ado-files of 01 Sep 2004, under Windows 2000.)

For instance, if in the -auto- data I type

scatter mpg weight [fwei=rep78]

then the symbols are unconnected, and have areas proportional to -rep78-. And if I type

scatter mpg weight, connect(L) sort

then the symbols are unweighted, and are connected by ascending weight. But if I type

scatter mpg weight [fwei=rep78], connect(L) sort

or even if I type

scatter mpg weight [fwei=rep78], connect(L) sort(weight)

then the symbols are weighted, but are connected as if I had typed

scatter mpg weight [fwei=rep78], connect(L)

(ie the -sort- option is disabled).


The same feature is experienced if I substitute -awei- or -pwei- for -fwei- in the above. I have also experienced this feature with the -twoway- plot options -connected- and -rconnected- (data not shown), so it doesn't seem to be localised to -scatter-. Is this feature supposed to be there?

Best wishes (and thanks in advance)

Roger

--
Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605
Email: [email protected]
Website: http://www.kcl-phs.org.uk/rogernewson

Opinions expressed are those of the author, not the institution.

*
* 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