Stata 15 help for mat_put_rr
[P] matrix get  Post test constraint matrix
Syntax
mat_put_rr matname
Description
mat_put_rr is a programmer's command that posts matname as the internal
Rr matrix. matname must have one more than the number of columns in the
e(b) and e(V) matrices. The extra column contains the r vector, and the
earlier columns contain the R matrix for the Wald test
Rb = r
See Methods and formulas in [R] test.
The matrix ... get(Rr) command provides a way to obtain the current Rr
system matrix; see [P] matrix get.
Example
. regress y x1 x2 x3 x4
. mat z = (1,0,0,1,0,2.8 \ 1,0,1,0,0,0)
. mat_put_rr z
. test
gives the same result as
. regress y x1 x2 x3 x4
. test x1x2=2.8, notest
. test x1x3=0, accum
