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 on April 23, and its replacement, 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" <>
To   "" <>
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)

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


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:

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