hi,
Is there any way to create a new frame from the previous collect result:
desired new frame:
thanks,
Is there any way to create a new frame from the previous collect result:
Code:
. clear
. sysuse auto
(1978 automobile data)
. collect clear
. collect: qui reg price mpg rep78 headroom weight length turn displacement gear_ratio
. collect layout (colname) (result[_r_b]) (), name(default)
Collection: default
Rows: colname
Columns: result[_r_b]
Table 1: 9 x 1
------------------------------------
| Coefficient
-----------------------+------------
Mileage (mpg) | -117.2946
Repair record 1978 | 742.5576
Headroom (in.) | -594.5623
Weight (lbs.) | 3.935387
Length (in.) | -74.93533
Turn circle (ft.) | -208.5507
Displacement (cu. in.) | 16.98242
Gear ratio | 1645.675
Intercept | 10076.63
------------------------------------
desired new frame:
Code:
. list
+---------------------------------+
| var coeffi~t |
|---------------------------------|
1. | Mileage(mpg) -117.295 |
2. | Repairrecord1978 742.558 |
3. | Headroom(in.) -594.562 |
4. | Weight(lbs.) 3.93539 |
5. | Length(in.) -74.9353 |
|---------------------------------|
6. | Turncircle(ft.) -208.551 |
7. | Displacement(cu.in.) 16.9824 |
8. | Gearratio 1645.68 |
9. | Intercept 10076.6 |
+---------------------------------+
thanks,

Comment