Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Wald test cannot be done after reg


From   "Austin Nichols" <[email protected]>
To   [email protected]
Subject   Re: st: Wald test cannot be done after reg
Date   Mon, 25 Jun 2007 16:15:44 -0400

This does look like a bug.  But there is an easy workaround--put the
element of the matrix in a local macro or scalar:

sysuse auto, clear
mat forn=(0 , 1)
local l=el(forn,1,1)
reg pr mp if foreign==`l'
test mpg=-300

*doesn't work:
reg pr mp if foreign==el(forn,1,1)
test mpg=-300

*worse, Stata abends:
reg pr mp if foreign==el(forn,1,1)
reg

On 6/25/07, [email protected] <[email protected]> wrote:
. reg lIngrel  PF PL PK LO OI lactivo if year==el(annos,1,1), cluster(cod)
. test PF+PL+PK=0
requested action not valid after most recent estimation command
*
*   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