Examples after multiple-equation estimation commands
Setup
. sysuse auto
. sureg (price foreign mpg displ) (weight foreign length)
Test significance of foreign in the price equation
. test [price]foreign
Test that foreign is jointly 0 in both equations
. test [price]foreign [weight]foreign
Shorthand for the previous test command
. test foreign
Test a cross-equation constraint
. test [price]foreign = [weight]foreign
Alternative syntax for the previous test
. test [price=weight]: foreign
Test all coefficients except the intercept in an equation
. test [price]
Test that foreign and displ are jointly 0 in the price equation
. test [price]: foreign displ
Test that the coefficients on variables that are common to both equations are jointly 0
. test [price=weight], common
Simultaneous test of multiple constraints
. test ([price]: foreign) ([weight]: foreign)