全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Gauss专版
6153 13
2011-01-05
Financial Analysis Package MT
for GAUSSTM
Version 2.0
Aptech Systems, Inc.

1 Installation 1
1.1 UNIX/Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1.1 Download . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1.2 CD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1.3 Floppy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 Windows/NT/2000 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2.1 Download . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2.2 CD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2.3 Floppy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Di erences Between the UNIX and Windows/NT/2000 Versions . . . . . 4
2 Financial Analysis Package 5
2.1 Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.1.1 README Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.1.2 Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.2 Modeling with FANPACMT . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.3 Univariate Time Series Models . . . . . . . . . . . . . . . . . . . . . . . . 10
2.3.1 ARCH/GARCH/ARMAGARCH models . . . . . . . . . . . . . . . 10
2.3.2 IGARCH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.3.3 FIGARCH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.3.4 OLS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.4 Multivariate Time Series Models . . . . . . . . . . . . . . . . . . . . . . . 17
2.4.1 Diagonal Vec ARCH/GARCH/VARGARCH . . . . . . . . . . . . 17
2.4.2 Constant Correlation DVEC GARCH Model . . . . . . . . . . . . 19
2.4.3 BEKK GARCH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.5 Inference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.5.1 Covariance Matrix of Parameters . . . . . . . . . . . . . . . . . . . 23
2.5.2 Quasi-Maximum Likelihood Covariance Matrix of Parameters . . . 25
2.5.3 Con dence Limits . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2.6 FANPACMT Keyword Commands . . . . . . . . . . . . . . . . . . . . . . 26
2.6.1 Initializing the Session . . . . . . . . . . . . . . . . . . . . . . . . . 27
2.6.2 Entering Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
2.6.3 The Date Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
2.6.4 Scaling Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
2.6.5 Independent Variables . . . . . . . . . . . . . . . . . . . . . . . . . 29
2.6.6 Selecting Observations . . . . . . . . . . . . . . . . . . . . . . . . . 29
2.6.7 Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
2.6.8 Setting Type of Constraints . . . . . . . . . . . . . . . . . . . . . . 31
2.6.9 The Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
2.6.10 Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
2.6.11 Standardized and Unstandardized Residuals . . . . . . . . . . . . . 34
ii
2.6.12 Conditional Variances and Standard Deviations . . . . . . . . . . . 35
2.6.13 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
2.6.14 Altering SQPSolveMT control variables . . . . . . . . . . . . . . . 43
2.6.15 Multivariate Models . . . . . . . . . . . . . . . . . . . . . . . . . . 44
2.6.16 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
2.7 Data Transformations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
2.8 FANPACMT Session Structure . . . . . . . . . . . . . . . . . . . . . . . . 52
2.9 FANPACMT Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
2.9.1 Bibliography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
3 FANPACMT Keyword Reference 59
clearSession . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
constrainPDCovPar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
computeLogReturns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
computePercentReturns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
estimate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
forecast . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
getCV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
getCOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
getEstimates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
getRD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
getSeriesACF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
getSeriesPACF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
getSession . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
getSR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
iii
plotCOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
plotCSD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
plotCV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
plotQQ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
plotSeries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
plotSeriesACF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
plotSeriesPACF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
plotSR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
setAlpha . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
SetConstraintType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
setCovParType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
setCVIndEqs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
setDataset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
setIndElapsedPeriod . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
setIndEqs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
setIndLogElapsedPeriod . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
setInferenceType . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
setInmean . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
setIndVars . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
setLagTruncation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
setLagInitialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
setLjungBoxOrder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
setOutputFile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
setRange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
setSeries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
setVarNames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
showEstimates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
showResults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
showRuns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
simulate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
testSR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
iv
4 FANPACMT Procedure Reference 113
mcvar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
mforecast . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
mgarch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
mres . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
mroots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
mSimulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
simlimits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
ucvar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
uforecast . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
ugarch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
uRes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
uRoots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
uSimulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Index 133
附件列表

app_fanmt_2.0_DOS.zip

大小:515.43 KB

 马上下载

本附件包括:

  • fanpacmt2.0.pdf

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2011-1-6 22:29:20
谢谢了哈!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-1-6 22:42:33
已按规定进行奖励。
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-1-6 22:55:48
谢谢zhaomn200145 版主
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-1-7 20:53:21
c:\gauss\src\bkgarchmt.src(44) : error G0474 : ' bkgarch_n(struct PV p0,struct DS d0)' : Illegal creation of global
c:\gauss\src\bkgarchmt.src(46) : error G0017 : 'local u,h,r,logl,vc,oldt,nobs,c,za,dt,ny,ny2' : WARNING: LOCAL outside of procedure
c:\gauss\src\bkgarchmt.src(48) : error G0474 : 'u' : Illegal creation of global
为什么我在运行fanpacmt1.e时提示以上错误,谢谢!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-1-7 20:56:01
===============================================================================
                               Session: SeriesD                                
-------------------------------------------------------------------------------
                                   Series D                                    
-------------------------------------------------------------------------------
FANPAC Version 2.0.7          Data Set:  seriesd         1/03/2002  2:41:42
===============================================================================


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                   run: run1                                   
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------

return code =    0
normal convergence


Model:  ARIMA

Number of Observations     : 310
Observations in likelihood : 310
Degrees of Freedom         : 308

log-likelihood :        -65.2582
           AIC :         134.516
           BIC :         141.989
           LRS :         130.516

          roots
     _______________
      0.16080816
       Abs(roots)
     _______________
      0.16080816

Maximum likelihood covariance matrix of parameters
0.99 confidence limits computed from standard errors

Series: D


  Mean Equations


Constant(s)

Estimate
6.6553      
standard error
2.5066      

lower confidence limit
0.1586      

upper confidence limit
13.1521     

AR Parameter(s)

Estimate
0.8615      
standard error
0.0282      

lower confidence limit
0.7884      

upper confidence limit
0.9345      



From Table I, Hamilton and Wu:

lower    upper      method
.795     .941       exact likelihood ratio
.798     .945       sum of squares
.789     .934       conditonal on z_1
.799     .945       conditional on z_n
.797     .940       profile likelihood I
.777     .924       profile likelihood IV
.806    1.000       based on score statistics
以上是运行程序fanpacmt1.e的结果
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群