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

RE: st: RE: bug with histogram?


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: bug with histogram?
Date   Wed, 7 May 2003 12:46:39 +0100

Edwin Leuven

> > I can't reproduce this with
> > so it may be that you need to say more
> > about your variables -v1- and -v4-.
> 
> nothing strange i think, ed.
> 
> . tab v4 v1
> 
>            |                v1
>            |         0        500       1500 |     Total
> -----------+---------------------------------+----------
>          0 |         0          1          0 |         1 
>         28 |         1          0          0 |         1 
>         56 |         0          1          0 |         1 

< snip > 

>       1780 |         0          0          1 |         1 
>       1810 |         1          0          0 |         1 
>       1895 |         0          1          0 |         1 
>       2360 |         0          1          0 |         1 
> -----------+---------------------------------+----------
>      Total |        75         82         77 |       234 
> 

Behaviour confirmed with these data. 

What I think is happening is that 
you are asking for more bars 
than a -tabulate- internal to -hist-
can handle, although tha in turn is not 
quite clear to me. Over to Stata Corp
for a fix, or a more graceful trap of 
any limit. 

For the moment 

. spikeplot v4, by(v1) 

may be close enough to what you want. 

Nick 
[email protected] 
*
*   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