f***5 发帖数: 1569 | 1 If it is regression:
reg y x1 z
outreg2 using 1.xls, replace keep (x1 z)
reg y x2
outreg2 using 1.xls, keep (x2 z)
If it is others, I have a code like this, but not sure whether it can help u
. U need to use something like APPEND I guess. eg 1 and eg 2is not related
(1) forvalues i=1(1)16 {
use f_oos, clear
forvalues j=1(1)10{
rename f`i'_yr`j' year`j'
}
keep year1 year2 year3 year4 year5 year6 year7 year8 year9 year10
save f`i'_oos,replace
}
(2)
forvalues i=2(1)16 {
append using rs`... 阅读全帖 |
|