1. Series 有两种Calendar-based time series 及 Non-calendar-based signals
为方便计,采signalSeries
2.假设你的数据是logret.txt,已输入到s-plus中.
superman.ts <- signalSeries(data.frame(logret),from=1 )
logret=superman.ts[,"logret"]
ret=superman.ts@data[,"logret"]
ret.figarch = fgarch(ret~1, ~figarch(1,1))