Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: 'twoway' syntax subtlety


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: 'twoway' syntax subtlety
Date   Wed, 15 Oct 2008 14:19:30 +0200

The -twoway- family can sometimes behave quite differently from the rest of
the graphs in Stata. IF you want to know what is going on "under the hood",

************
sysuse auto, clear

profiler on

kdensity mpg
tw (kdensity mpg)

profiler off
profiler report
************

This method results in less clutter (than the -trace-) on the screen and
still gives you the essential information.

HTH
Martin

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of George Hoffman
Sent: Wednesday, October 15, 2008 1:52 PM
To: [email protected]
Subject: st: 'twoway' syntax subtlety

I'm trying to overlay two (or more) kdensity plots.

kdensity accepts the 'norm' option
twoway kdensity does not - see log below

I thought twoway calls kdensity - but I must have a misunderstanding of
stata 10 graphics....

An explanation of principle would be most appreciated.
Thank you,
George Hoffman



This my Stata 10 log:

. two (kdensity rso2c if vmi85==0) (kdensity rso2c if vmi85==1)

. two (kdensity rso2c if vmi85==0,norm) (kdensity rso2c if vmi85==1,norm)
option norm not allowed
r(198);

. kdensity rso2c if vmi85==0,norm

. two kdensity rso2c if vmi85==0,norm
option norm not allowed
r(198);


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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