Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: RE: Converting Saved results r() into a Stata *.dta file


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: Converting Saved results r() into a Stata *.dta file
Date   Fri, 5 Sep 2008 17:57:41 +0200

As -h matsave- says: " matsave... (is) based on Stata commands svmat and
mkmat..."


HTH
Martin



-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Sergiy Radyakin
Sent: Friday, September 05, 2008 5:45 PM
To: [email protected]
Subject: Re: st: RE: Converting Saved results r() into a Stata *.dta file

Hello Max,

In addition to Martin's advice, see:

  help svmat
  help mata_matsave

and in particular:

   help _return                 "_return saves and restores the contents of
r()"

Regards, Sergiy

On 9/5/08, Martin Weiss <[email protected]> wrote:
> ******************
> cap ssc inst matsave
> cap mkdir matrices
> di in red _rc
>
> sysuse auto, clear
> reg pr we disp
> eret li
>
> *saving varcov
> mat def A=e(V)
> matsave A, replace p("matrices") saving
>
> cd matrices
> u A, clear
> *lets see the varcov
> l
> *where is it?
> di "`c(filename)'"
> ******************
>
>
>
> HTH
> Martin
>
>
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Max Bulsara
> Sent: Friday, September 05, 2008 8:23 AM
> To: [email protected]
> Subject: st: Converting Saved results r() into a Stata *.dta file
>
> Could someone tell me how to convert a saved matrix eg: r(adj) (a 1x14
> matrix) into a stata file so that I can use it for something else? I am
> using Stata v10.
>
> Thanks
> Max
>
>
> Max Bulsara,
> Research Fellow/Consultant Biostatistician
> (Adjunct Assoc Prof Curtin University
> and University of Notre Dame),
> School of Population Health (M431)
> University of Western Australia
> Faculty of Medicine and Dentistry
> 35 Stirling Highway, CRAWLEY
> Western Australia, WA6009
> Tel: 6488 1267
> Fax: 6488 1199
> email: [email protected]
>
>
>
>
> *
> *   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/


*
*   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/



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