凑合着用吧:
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