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

Re: st: Stata crashes using test after


From   [email protected]
To   [email protected]
Subject   Re: st: Stata crashes using test after
Date   Mon, 19 May 2003 09:55:09 -0500

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index