> My apologies for the personal note. I knew someday I would make
> that mistake...
I'll answer nonetheless.
> Given that -listcoef- has done all
> the heaving lifting, couldn't one just modify it with an rclass
> designation, and stick -return scalar- (or matrix) at the end of the
> code?
This is already done. -listcoef- has a -matrix- option. If
specified, the results are returned in r() as matrices.
Example:
. sysuse auto, clear
(1978 Automobile Data)
. qui logit foreign price weight
. listcoef, matrix
logit (N=74): Factor Change in Odds
Odds of: Foreign vs Domestic
----------------------------------------------------------------------
foreign | b z P>|z| e^b e^bStdX SDofX
-------------+--------------------------------------------------------
price | 0.00093 3.100 0.002 1.0009 15.5156 2949.4959
weight | -0.00588 -3.461 0.001 0.9941 0.0104 777.1936
----------------------------------------------------------------------
. return list
scalars:
r(pvalue) = 1
macros:
r(cmd) : "logit"
matrices:
r(b_facts) : 1 x 2
r(b_fact) : 1 x 2
r(b_sdx) : 1 x 2
r(b_z) : 1 x 2
r(b_p) : 1 x 2
r(b) : 1 x 2
. matrix list r(b_sdx)
r(b_sdx)[1,2]
price weight
SDofX 2949.4959 777.19357
. matrix list r(b_facts)
r(b_facts)[1,2]
price weight
e^bStdX 15.51555 .01037077
Cheers,
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/