Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: how to store matrix in a data file


From   "rasool.bux" <rasool.bux@aku.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: how to store matrix in a data file
Date   Tue, 23 Oct 2012 05:57:45 +0000

I want to store coefficients of each model in a separate data set by running the following code. Is there any solution?

sysuse auto,clear
forv i=1/5 {
       use "$S_FN",clear
        generate weight2 = weight^2
        bsample _N
        stepwise, pr(.2): regress mpg weight weight2 displ gear turn headroom foreign price
         mat b = e(b)
}

Thanks
Rasool Bux
Sr. Data Management Coordinator
Community Health Sciences Department,
Aga Khan University, Stadium Road,
P.O. Box 3500, Karachi 74800.
Pakistan.

________________________________

This e-mail may contain information that is privileged or confidential. If you are not the intended recipient, please delete the e-mail and any attachments and notify us immediately.


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


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index