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