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

st: RE: 'twoway' syntax subtlety

From   "Martin Weiss" <>
To   <>
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.


-----Original Message-----
[] On Behalf Of George Hoffman
Sent: Wednesday, October 15, 2008 1:52 PM
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

. kdensity rso2c if vmi85==0,norm

. two kdensity rso2c if vmi85==0,norm
option norm not allowed

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2023 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index