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

Re: st: Slow STATA


From   [email protected] (Richard Gates)
To   [email protected]
Subject   Re: st: Slow STATA
Date   Tue, 12 Oct 2004 08:52:37 -0500

In response to Joseph's question:

> I have had trouble running a series of simple exact tests.  Whenever my
> tables go beyond 2x2 to tables such as the example below, STATA grinds to a
> virtual halt.  I waited a half hour before pressing the "break" button.
>
> tab score arm, exact
>
>            |     Intervention
>      Score | Lifestyle  Education |     Total
> -----------+----------------------+----------
>          0 |        38         54 |        92
>          1 |        73         73 |       146
>          2 |        56         58 |       114
>          3 |        29         37 |        66
>          4 |        21         20 |        41
>          5 |         6          3 |         9
>          6 |         3          3 |         6
> -----------+----------------------+----------
>
>
> This is as far as STATA gets before it seems to stop.
>

This problem will run instanteously if we input a 2 x 7 table

. profiler clear

. tabi 38 73 56 29 21 6 3 \ 54 73 58 37 20 3 3, exact

           |                                     col
       row |         1          2          3          4          5          6        7 |     Total
-----------+-----------------------------------------------------------------------------+----------
         1 |        38         73         56         29         21          6        3 |       226
         2 |        54         73         58         37         20          3        3 |       248
-----------+-----------------------------------------------------------------------------+----------
     Total |        92        146        114         66         41          9        6 |       474

           Fisher's exact =                 0.707

. profiler off

. profiler report
Overall total count =      0
Overall total time  =      0.000 (sec)

I am the developer that implemented Mehta and Patel's fexact algorithm for the
latest (Oct 5) executable update and I have evidently over looked something,
which I am hastily trying to figure out. In the mean time, use tables with the
number of columns greater than the number of rows.

Thank you for bringing this problem to my attention.

-Rich
[email protected]

> From [email protected] Mon Oct 11 15:31:25 2004
> Received: from gateway.stata.com (gateway.stata.com [64.241.108.3])
> 	by dimebox.stata.com (8.12.8/8.12.8) with ESMTP id i9BKVFda011006;
> 	Mon, 11 Oct 2004 15:31:25 -0500
> Received: (from root@localhost)
> 	by gateway.stata.com (8.11.6/8.11.6) id i9BKQFY28646;
> 	Mon, 11 Oct 2004 15:26:15 -0500
> Received: from guardian.sph.harvard.edu (guardian.sph.harvard.edu [134.174.190.3])
> 	by gateway.stata.com (8.11.6/8.11.6) with ESMTP id i9BKQAJ28471;
> 	Mon, 11 Oct 2004 15:26:10 -0500
> Received: from hsph.harvard.edu (unverified [134.174.190.41]) by guardian.sph.harvard.edu
>  (Vircom SMTPRS 3.0.287) with ESMTP id <[email protected]>;
>  Mon, 11 Oct 2004 16:26:37 -0400
> Received: from hsphsun2.harvard.edu (hsphsun2 [134.174.190.44])
> 	by hsph.harvard.edu (Postfix) with ESMTP
> 	id 0DF1376D; Mon, 11 Oct 2004 16:26:37 -0400 (EDT)
> Received: from localhost (daemon@localhost)
> 	by hsphsun2.harvard.edu (8.11.7p1+Sun/8.11.7) with SMTP id i9BKQPG19030;
> 	Mon, 11 Oct 2004 16:26:29 -0400 (EDT)
> Received: by hsphsun2.harvard.edu (bulk_mailer v1.13); Mon, 11 Oct 2004 16:25:49 -0400
> Received: (from majordom@localhost)
> 	by hsphsun2.harvard.edu (8.11.7p1+Sun/8.11.7) id i9BKPmJ18978;
> 	Mon, 11 Oct 2004 16:25:48 -0400 (EDT)
> X-Authentication-Warning: hsphsun2.harvard.edu: majordom set sender to [email protected] using -f
> Received: from guardian.sph.harvard.edu (guardian.sph.harvard.edu [134.174.190.3])
> 	by hsphsun2.harvard.edu (8.11.7p1+Sun/8.11.7) with ESMTP id i9BKPj418974
> 	for <[email protected]>; Mon, 11 Oct 2004 16:25:45 -0400 (EDT)
> Received: from tiger.gsph.pitt.edu (unverified [136.142.151.117]) by guardian.sph.harvard.edu
>  (Vircom SMTPRS 3.0.287) with ESMTP id <[email protected]> for <[email protected]>;
>  Mon, 11 Oct 2004 16:25:46 -0400
> Received: by edc.gsph.pitt.edu with Internet Mail Service (5.5.2653.19)
> 	id <4PD2H4XP>; Mon, 11 Oct 2004 16:26:27 -0400
> Message-ID: <[email protected]>
> From: "Wagner, Joseph" <[email protected]>
> To: "'STATAList'" <[email protected]>
> Subject: st: Slow STATA
> Date: Mon, 11 Oct 2004 16:26:17 -0400
> MIME-Version: 1.0
> X-Mailer: Internet Mail Service (5.5.2653.19)
> Content-Type: text/plain
> Sender: [email protected]
> Reply-To: [email protected]
> X-Spam-Checker-Version: SpamAssassin 2.61-arrconfig28
> 	(1.212.2.1-2003-12-09-exp) on gateway.stata.com
> X-Spam-Status: No, hits=-76.1 required=6.0 tests=AWL,USER_IN_WHITELIST
> 	autolearn=no version=2.61-arrconfig28
> X-Spam-Level:
> X-scanner: scanned by Inflex 1.0.12.3 at StataCorp LP
>
> I have had trouble running a series of simple exact tests.  Whenever my
> tables go beyond 2x2 to tables such as the example below, STATA grinds to a
> virtual halt.  I waited a half hour before pressing the "break" button.
>
> tab score arm, exact
>
>            |     Intervention
>      Score | Lifestyle  Education |     Total
> -----------+----------------------+----------
>          0 |        38         54 |        92
>          1 |        73         73 |       146
>          2 |        56         58 |       114
>          3 |        29         37 |        66
>          4 |        21         20 |        41
>          5 |         6          3 |         9
>          6 |         3          3 |         6
> -----------+----------------------+----------
>      Total |       226        248 |       474
>
>
> This is as far as STATA gets before it seems to stop.
>
> I am using STATA v8.2, on a PIII PC with 512mb of RAM running XP
> Professional.
> *
> *   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/
> From [email protected] Mon Oct 11 15:31:25 2004
> Received: from gateway.stata.com (gateway.stata.com [64.241.108.3])
> 	by dimebox.stata.com (8.12.8/8.12.8) with ESMTP id i9BKVFda011006;
> 	Mon, 11 Oct 2004 15:31:25 -0500
> Received: (from root@localhost)
> 	by gateway.stata.com (8.11.6/8.11.6) id i9BKQFY28646;
> 	Mon, 11 Oct 2004 15:26:15 -0500
> Received: from guardian.sph.harvard.edu (guardian.sph.harvard.edu [134.174.190.3])
> 	by gateway.stata.com (8.11.6/8.11.6) with ESMTP id i9BKQAJ28471;
> 	Mon, 11 Oct 2004 15:26:10 -0500
> Received: from hsph.harvard.edu (unverified [134.174.190.41]) by guardian.sph.harvard.edu
>  (Vircom SMTPRS 3.0.287) with ESMTP id <[email protected]>;
>  Mon, 11 Oct 2004 16:26:37 -0400
> Received: from hsphsun2.harvard.edu (hsphsun2 [134.174.190.44])
> 	by hsph.harvard.edu (Postfix) with ESMTP
> 	id 0DF1376D; Mon, 11 Oct 2004 16:26:37 -0400 (EDT)
> Received: from localhost (daemon@localhost)
> 	by hsphsun2.harvard.edu (8.11.7p1+Sun/8.11.7) with SMTP id i9BKQPG19030;
> 	Mon, 11 Oct 2004 16:26:29 -0400 (EDT)
> Received: by hsphsun2.harvard.edu (bulk_mailer v1.13); Mon, 11 Oct 2004 16:25:49 -0400
> Received: (from majordom@localhost)
> 	by hsphsun2.harvard.edu (8.11.7p1+Sun/8.11.7) id i9BKPmJ18978;
> 	Mon, 11 Oct 2004 16:25:48 -0400 (EDT)
> X-Authentication-Warning: hsphsun2.harvard.edu: majordom set sender to [email protected] using -f
> Received: from guardian.sph.harvard.edu (guardian.sph.harvard.edu [134.174.190.3])
> 	by hsphsun2.harvard.edu (8.11.7p1+Sun/8.11.7) with ESMTP id i9BKPj418974
> 	for <[email protected]>; Mon, 11 Oct 2004 16:25:45 -0400 (EDT)
> Received: from tiger.gsph.pitt.edu (unverified [136.142.151.117]) by guardian.sph.harvard.edu
>  (Vircom SMTPRS 3.0.287) with ESMTP id <[email protected]> for <[email protected]>;
>  Mon, 11 Oct 2004 16:25:46 -0400
> Received: by edc.gsph.pitt.edu with Internet Mail Service (5.5.2653.19)
> 	id <4PD2H4XP>; Mon, 11 Oct 2004 16:26:27 -0400
> Message-ID: <[email protected]>
> From: "Wagner, Joseph" <[email protected]>
> To: "'STATAList'" <[email protected]>
> Subject: st: Slow STATA
> Date: Mon, 11 Oct 2004 16:26:17 -0400
> MIME-Version: 1.0
> X-Mailer: Internet Mail Service (5.5.2653.19)
> Content-Type: text/plain
> Sender: [email protected]
> Reply-To: [email protected]
> X-Spam-Checker-Version: SpamAssassin 2.61-arrconfig28
> 	(1.212.2.1-2003-12-09-exp) on gateway.stata.com
> X-Spam-Status: No, hits=-76.1 required=6.0 tests=AWL,USER_IN_WHITELIST
> 	autolearn=no version=2.61-arrconfig28
> X-Spam-Level:
> X-scanner: scanned by Inflex 1.0.12.3 at StataCorp LP
>
> I have had trouble running a series of simple exact tests.  Whenever my
> tables go beyond 2x2 to tables such as the example below, STATA grinds to a
> virtual halt.  I waited a half hour before pressing the "break" button.
>
> tab score arm, exact
>
>            |     Intervention
>      Score | Lifestyle  Education |     Total
> -----------+----------------------+----------
>          0 |        38         54 |        92
>          1 |        73         73 |       146
>          2 |        56         58 |       114
>          3 |        29         37 |        66
>          4 |        21         20 |        41
>          5 |         6          3 |         9
>          6 |         3          3 |         6
> -----------+----------------------+----------
>      Total |       226        248 |       474
>
>
> This is as far as STATA gets before it seems to stop.
>
> I am using STATA v8.2, on a PIII PC with 512mb of RAM running XP
> Professional.
> *
> *   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/
> From [email protected] Mon Oct 11 15:31:25 2004
> Received: from gateway.stata.com (gateway.stata.com [64.241.108.3])
> 	by dimebox.stata.com (8.12.8/8.12.8) with ESMTP id i9BKVFda011006;
> 	Mon, 11 Oct 2004 15:31:25 -0500
> Received: (from root@localhost)
> 	by gateway.stata.com (8.11.6/8.11.6) id i9BKQFY28646;
> 	Mon, 11 Oct 2004 15:26:15 -0500
> Received: from guardian.sph.harvard.edu (guardian.sph.harvard.edu [134.174.190.3])
> 	by gateway.stata.com (8.11.6/8.11.6) with ESMTP id i9BKQAJ28471;
> 	Mon, 11 Oct 2004 15:26:10 -0500
> Received: from hsph.harvard.edu (unverified [134.174.190.41]) by guardian.sph.harvard.edu
>  (Vircom SMTPRS 3.0.287) with ESMTP id <[email protected]>;
>  Mon, 11 Oct 2004 16:26:37 -0400
> Received: from hsphsun2.harvard.edu (hsphsun2 [134.174.190.44])
> 	by hsph.harvard.edu (Postfix) with ESMTP
> 	id 0DF1376D; Mon, 11 Oct 2004 16:26:37 -0400 (EDT)
> Received: from localhost (daemon@localhost)
> 	by hsphsun2.harvard.edu (8.11.7p1+Sun/8.11.7) with SMTP id i9BKQPG19030;
> 	Mon, 11 Oct 2004 16:26:29 -0400 (EDT)
> Received: by hsphsun2.harvard.edu (bulk_mailer v1.13); Mon, 11 Oct 2004 16:25:49 -0400
> Received: (from majordom@localhost)
> 	by hsphsun2.harvard.edu (8.11.7p1+Sun/8.11.7) id i9BKPmJ18978;
> 	Mon, 11 Oct 2004 16:25:48 -0400 (EDT)
> X-Authentication-Warning: hsphsun2.harvard.edu: majordom set sender to [email protected] using -f
> Received: from guardian.sph.harvard.edu (guardian.sph.harvard.edu [134.174.190.3])
> 	by hsphsun2.harvard.edu (8.11.7p1+Sun/8.11.7) with ESMTP id i9BKPj418974
> 	for <[email protected]>; Mon, 11 Oct 2004 16:25:45 -0400 (EDT)
> Received: from tiger.gsph.pitt.edu (unverified [136.142.151.117]) by guardian.sph.harvard.edu
>  (Vircom SMTPRS 3.0.287) with ESMTP id <[email protected]> for <[email protected]>;
>  Mon, 11 Oct 2004 16:25:46 -0400
> Received: by edc.gsph.pitt.edu with Internet Mail Service (5.5.2653.19)
> 	id <4PD2H4XP>; Mon, 11 Oct 2004 16:26:27 -0400
> Message-ID: <[email protected]>
> From: "Wagner, Joseph" <[email protected]>
> To: "'STATAList'" <[email protected]>
> Subject: st: Slow STATA
> Date: Mon, 11 Oct 2004 16:26:17 -0400
> MIME-Version: 1.0
> X-Mailer: Internet Mail Service (5.5.2653.19)
> Content-Type: text/plain
> Sender: [email protected]
> Reply-To: [email protected]
> X-Spam-Checker-Version: SpamAssassin 2.61-arrconfig28
> 	(1.212.2.1-2003-12-09-exp) on gateway.stata.com
> X-Spam-Status: No, hits=-76.1 required=6.0 tests=AWL,USER_IN_WHITELIST
> 	autolearn=no version=2.61-arrconfig28
> X-Spam-Level:
> X-scanner: scanned by Inflex 1.0.12.3 at StataCorp LP
>
> I have had trouble running a series of simple exact tests.  Whenever my
> tables go beyond 2x2 to tables such as the example below, STATA grinds to a
> virtual halt.  I waited a half hour before pressing the "break" button.
>
> tab score arm, exact
>
>            |     Intervention
>      Score | Lifestyle  Education |     Total
> -----------+----------------------+----------
>          0 |        38         54 |        92
>          1 |        73         73 |       146
>          2 |        56         58 |       114
>          3 |        29         37 |        66
>          4 |        21         20 |        41
>          5 |         6          3 |         9
>          6 |         3          3 |         6
> -----------+----------------------+----------
>      Total |       226        248 |       474
>
>
> This is as far as STATA gets before it seems to stop.
>
> I am using STATA v8.2, on a PIII PC with 512mb of RAM running XP
> Professional.
> *
> *   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