Statalist


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

st: RE: Too much time to draw a graph


From   "Kieran McCaul" <Kieran.McCaul@uwa.edu.au>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Too much time to draw a graph
Date   Wed, 21 Oct 2009 11:18:15 +0800

...

The following ran in a second or so.

Why don't you -set trace on- before you run -histogram- and see what it
is doing.


. clear
. set obs 4445
obs was 0, now 4445

. gen x = 100 + (25*invnormal(uniform()))
. summ x

    Variable |       Obs        Mean    Std. Dev.       Min        Max
-------------+--------------------------------------------------------
           x |      4445    100.7443    24.92742   8.193512   179.5044

. histogram x, bin(23)
(bin=23, start=8.193512, width=7.4482979)


______________________________________________
Kieran McCaul MPH PhD
WA Centre for Health & Ageing (M573)
University of Western Australia
Level 6, Ainslie House
48 Murray St
Perth 6000
Phone: (08) 9224-2701
Fax: (08) 9224 8009
email: Kieran.McCaul@uwa.edu.au
http://myprofile.cos.com/mccaul 
http://www.researcherid.com/rid/B-8751-2008
______________________________________________
If you live to be one hundred, you've got it made.
Very few people die past that age - George Burns


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Shoji
TOKUNAGA
Sent: Wednesday, 21 October 2009 10:18 AM
To: statalist@hsphsun2.harvard.edu
Subject: st: Too much time to draw a graph

Dear Stata users,

I have a problem on drawing a graph with my Stata.  It takes too much
time.

I am running Stata 11/MP on Japanese version of Windows XP.
After I input a line of histogram command on the command window, I
cannot get the graph even after 10 minutes. The data has only 4445
records with around 10 variables. 

Do someone share a similar problem?  Is it a unique problem to Japanese
version of Window XP, or common to "slow" PC?  My note PC has a dual
core CPU (Centrino system) of 1 GHz.

. histogram value if itemcode == 3
(bin=23, start=7.8000002, width=.38695655)

.... long time passing .....


+------------------------------------------------------------------+
 Shoji TOKUNAGA
 Dept. of Medical Informatics           |<International>
 Kyushu University Hospital             | Telephone (81)-92-642-5881
 Maidashi 3-1-1,Fukuoka 812-8582, Japan | Facsimile (81)-92-642-5889
+------------------------------------------------------------------+


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index