[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
fjgallo@mac.com |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: Re: Calculate beta values for mim results |

Date |
Thu, 30 Apr 2009 20:48:36 -0400 |

Hi Martin,

Best, Frank On Apr 30, 2009, at 6:50 PM, Martin Weiss wrote: <>

********* *to recover beta coefficients sysuse auto, clear qui reg pr we f rep tr tu qui sum pr if e(sample) sca sd=r(sd) qui tabstat we f rep tr tu if e(sample), /// statistics( sd ) columns(variables) save mata sds=st_matrix("r(StatTotal)")' mata stata qui reg pr we f rep tr tu bs=st_matrix("e(b)")[1..5]' beta=bs:*sds:/st_numscalar("sd") beta end *check reg pr we f rep tr tu, beta noheader ****** HTH Martin _______________________ ----- Original Message ----- From: <fjgallo@mac.com> To: <statalist@hsphsun2.harvard.edu> Sent: Thursday, April 30, 2009 10:35 PM Subject: st: Calculate beta values for mim results

Dear All,Can I calculate beta values besides the standard estimates that the- mim- command produces? I tried using the below commands, butresults returned no values. Thank you.Best regards, Frank mim: regress y x1 x2..... mim, storebv betacoef return list matrix list r(beta) Results: r(beta) [1,23] x1 x2... _cons . . 0 * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

* * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/ * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**References**:**st: Calculate beta values for mim results***From:*fjgallo@mac.com

**st: Re: Calculate beta values for mim results***From:*"Martin Weiss" <martin.weiss1@gmx.de>

- Prev by Date:
**st: Re: Calculate beta values for mim results** - Previous by thread:
**st: Re: Calculate beta values for mim results** - Index(es):

© Copyright 1996–2015 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |