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   "Sergiy Radyakin" <serjradyakin@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: Converting Saved results r() into a Stata *.dta file
Date   Fri, 5 Sep 2008 11:45:02 -0400

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 <martin.weiss@uni-tuebingen.de> 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: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Max Bulsara
> Sent: Friday, September 05, 2008 8:23 AM
> To: statalist@hsphsun2.harvard.edu
> 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: Max.Bulsara@uwa.edu.au
>
>
>
>
> *
> *   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index