Guillermo wrote:
> * Suppose I have:
> Y= b1*x+b2*z+b3*w
>
> To test b1=b2 I do
> test x= z
>
> And I can store the p-value associated with such test by doing
> Local F1=r(p)
>
>
> * How can I put this value F1 in my table using the command estout
The solution is to add the statistic to e(). For example, use
the -eret2- program (available from SSC, type -ssc install eret2-):
. reg Y x z w
. test x=z
. eret2 scalar p_xz = r(p)
. estout , stat(p_xz)
Also see -estadd- (type -ssc describe estadd-).
ben
*
* 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/