|
楼主: superzhousi
|
2541
4
求助:如何存储Rolling的结果 |
|
讲师 49%
-
|
回帖推荐凑合着用吧:
forv i = 1/100 {
rolling alpha = _b[_cons], window(36) saving(alpha`i',replace): regress fund`i' market hml smb mom
}
use alpha1, clear
gen fund = 1
forv i = 2/100 {
append using alpha`i'
replace fund = `i' if fund == .
}
line alpha start, connect(ascending) // 作个图瞧瞧
/ * drop end n
reshape wide alpha, i(fund) j(start)
*/
save alpha
本帖被以下文库推荐
| ||||||||||||
|
|
| ||
| ||||||||
|
巫毒上传,必属佳品!
坛友下载,三思后行! |
||||||||
加好友,备注jltj京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


