a*******t 发帖数: 414 | 1 有两个变量,x1和x2
我用pctile可以求出他们的weighted mean,weighted 90th value, weighted 95th
value, weighted 97.5th value,以及相应的unweighted value。我的问题是最后如
何用stata把所有的结果放在一个表里,或者放在两个表里也可以。因为以前没学过
stata,网上搜了半天也找不到相应的stata命令,希望大家帮助! | a*******t 发帖数: 414 | 2 有两个变量,x1和x2
我用pctile可以求出他们的weighted mean,weighted 90th value, weighted 95th
value, weighted 97.5th value,以及相应的unweighted value。我的问题是最后如
何用stata把所有的结果放在一个表里,或者放在两个表里也可以。因为以前没学过
stata,网上搜了半天也找不到相应的stata命令,希望大家帮助! | f***5 发帖数: 1569 | 3 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`i'_oos
} |
|