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

Re: st: Stata crashes using test after


From   Ricardo Ovaldia <[email protected]>
To   [email protected]
Subject   Re: st: Stata crashes using test after
Date   Mon, 19 May 2003 08:40:34 -0700 (PDT)

Thank you Ken for the reply.

I realized yesterday that  
 . test foreign=0
was not valid syntax after -manova-. Although I though
I should get an "invalid syntax" not a crash.

I specified: 
 . test foreign=0
because I used it and it work with -mvreg- in Stata 7.
Should it work the same way? 

Best,
Ricardo.

--- [email protected] wrote:
> Ricardo Ovaldia <[email protected]> reports:
> 
> > The following piece of code causes my Stata 8 to
> crash
> > running on Windox XP:
> > 
> > . manova headroom trunk turn = price foreign,
> cont(price)
> > . test foreign=0
> > 
> > It happens everytime. Can anyone confirm this?
> 
> And several people confirmed it on various
> platforms.
> 
> Next executable update we will stop it from dumping
> core.
> 
> However, let me point out that
> 
>     . test foreign=0
> 
> is not valid syntax after -manova-.  -help test-
> points you to
> -help manovatest- which says that
> 
>     test [exp = exp] ...
> 
>     where exp must have references to coefficients
> enclosed in
>     [eqno]_coef[] (or synonym [eqno]_b[]).  eqno is
> either ## or
>     name.  Omitting [eqno] is equivalent to
> specifying [#1]
> 
> Similar information is in the manuals.
> 
> Maybe the test you meant to perform was
> 
>     . test _b[foreign[1]] = 0
> 
> or
> 
>     . test [headroom]_b[foreign[1]] = 0
> 
> or
> 
>     . test [trunk]_b[foreign[1]] = 0
> 
> or
> 
>     ...
> 
> Why foreign[1]?  Use the -detail- option of -manova-
> to see the
> underlying mapping of categorical variables.  You
> can do this
> after the fact with
> 
>     . manova , detail
> 
> At the top of the output you will see a table
> showing the
> mapping.  In this case, the levels of foreign are
> refered to as 1
> and 2 (the underlying values being 0 and 1).
> 
> 
> Ken Higbee    [email protected]
> StataCorp     1-800-STATAPC
> 
> *
> *   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/


=====
Ricardo Ovaldia, MS
Statistician 
Oklahoma City, OK

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
*
*   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