Oleksandr wrote:
> Mark,
>
> Thank you for help. I found how to use estout to get Anderson
> corr stat, and Anderson-Rubin stat. I still can not figure
> out how to present Shea's partial R2. After I run ivreg2, it
> is stored in the first raw of e(first), 6x1 vector, under
> the name sheapr2:
>
> . matrix list e(first)
>
> e(first)[6,1]
> wva
> sheapr2 .51326825
> pr2 .51326825
> F 20.266726
> df 12
> df_r 144
> pvalue 2.368e-25
>
>
> I have tried
>
> eret2 scalar partr2=ereturn(first[_sheapr2])
>
> but there is obviously something wrong with that expression
Mark answered:
You need to do it in several steps, e.g.,
mat m=e(first)
scalar shea=m[1,1] /* or whatever is the correct column */
eret2 scalar partr2=shea
In fact, this can be done in one step using Stata's el() matrix
function (see -help matrix functions-). Type
. estadd scalar partr2 = el(e(first), 1, 1)
ben
[-eret2 scalar partr2 = el(e(first), 1, 1)- would also do]
*
* 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/