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/