Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: how to store matrix in a data file


From   "rasool.bux" <[email protected]>
To   "[email protected]" <[email protected]>
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index