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

st: RE: Graphing Frustrations


From   Benjamin Hulley <[email protected]>
To   [email protected]
Subject   st: RE: Graphing Frustrations
Date   Tue, 19 Aug 2003 17:00:01 -0700


After much trial and error I have resolved my graphing problem. I'm unsure if this is a bug or just my misunderstanding however, the reason I could not get Stata to produce a box graph was my data labels. I had labeled the missing values .a "missing" .b "N/A". Producing a data set with out the missing value labels allows me to produce box graphs. Additionally labeling non missing values gave me no problems, and I could produce box graphs. Can anyone confirm this bug?

BH


On Tuesday, August 19, 2003, at 04:40 PM, Nick Cox wrote:


Sorry, but I get a box plot for a replication
of these data. I'm using

. about

Stata/SE 8.1 for Windows
Born 01 Jul 2003
Copyright (C) 1985-2003

Nick
[email protected]

Benjamin Hulley
- drinkalc - was in fact a poor example of my problem so I
will use -
oasm_agg - and I apologize for the mixing up graph and bar
charts.  I
am most interested in a box plot, though I have the same
problem for
bar graphs.  Here are the results of trying to produce a
box plot of
oasm_agg followed by a tabulation of the same variable.
Again, using
the precursor data sets I was successfully able to produce
a box plot
of oasm_agg (the only changes to oasm_agg between the two files are
labeling its missing values and relabeling the variable itself)

. graph box oasm_agg
invalid syntax
invalid syntax
invalid syntax
invalid syntax
invalid syntax
r(198);

. tab oasm_agg

        OASM |
  aggression |
       score |      Freq.     Percent        Cum.
------------+-----------------------------------
           0 |        546       53.48       53.48
           1 |         80        7.84       61.31
< snip >
          45 |          1        0.10       99.90
          49 |          1        0.10      100.00
------------+-----------------------------------
       Total |      1,021      100.00

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

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