g05pf generates a given number of terms of a GJR process (see Glosten et al. (1993)).
Syntax
C# |
---|
public static void g05pf( string dist, int num, int ip, int iq, double[] theta, double gamma, int df, double[] ht, double[] et, bool fcall, double[] r, G05..::..G05State g05state, out int ifail ) |
Visual Basic |
---|
Public Shared Sub g05pf ( _ dist As String, _ num As Integer, _ ip As Integer, _ iq As Integer, _ theta As Double(), _ gamma As Double, _ df As Integer, _ ht As Double(), _ et As Double(), _ fcall As Boolean, _ r As Double(), _ g05state As G05..::..G05State, _ <OutAttribute> ByRef ifail As Integer _ ) |
Visual C++ |
---|
public: static void g05pf( String^ dist, int num, int ip, int iq, array<double>^ theta, double gamma, int df, array<double>^ ht, array<double>^ et, bool fcall, array<double>^ r, G05..::..G05State^ g05state, [OutAttribute] int% ifail ) |
F# |
---|
static member g05pf : dist : string * num : int * ip : int * iq : int * theta : float[] * gamma : float * df : int * ht : float[] * et : float[] * fcall : bool * r : float[] * g05state : G05..::..G05State * ifail : int byref -> unit |
Parameters
- dist
- Type: System..::..StringOn entry: the type of distribution to use for .
- A Normal distribution is used.
- A Student's -distribution is used.
Constraint: or .
- num
- Type: System..::..Int32On entry: , the number of terms in the sequence.Constraint: .
- ip
- Type: System..::..Int32On entry: the number of coefficients, , for .Constraint: .
- iq
- Type: System..::..Int32On entry: the number of coefficients, , for .Constraint: .
- theta
- Type: array<System..::..Double>[]()[][]An array of size []On entry: the first element must contain the coefficient , the next iq elements must contain the coefficients , for . The remaining ip elements must contain the coefficients , for .Constraints:
- ;
- , for and .
- gamma
- Type: System..::..DoubleOn entry: the asymmetry parameter for the sequence.Constraint: , for .
- df
- Type: System..::..Int32On entry: the number of degrees of freedom for the Student's -distribution.If , df is not referenced.Constraint: if , .
- ht
- Type: array<System..::..Double>[]()[][]An array of size [num]On exit: the conditional variances , for , for the sequence.
- et
- Type: array<System..::..Double>[]()[][]An array of size [num]On exit: the observations , for , for the sequence.
- fcall
- Type: System..::..BooleanOn entry: if , a new sequence is to be generated, otherwise a given sequence is to be continued using the information in r.
- r
- Type: array<System..::..Double>[]()[][]An array of size [lr]On entry: the array contains information required to continue a sequence if .On exit: contains information that can be used in a subsequent call of g05pf, with .
- g05state
- Type: NagLibrary..::..G05..::..G05StateAn Object of type G05.G05State.
- ifail
- Type: System..::..Int32%On exit: unless the method detects an error or a warning has been flagged (see [Error Indicators and Warnings]).
Description
A GJR process is represented by:
where if , if , and or . Here is a standardized Student's -distribution with degrees of freedom and variance , is the number of observations in the sequence, is the observed value of the process at time , is the conditional variance at time , and the set of all information up to time . Symmetric GARCH sequences are generated when is zero, otherwise asymmetric GARCH sequences are generated with specifying the amount by which negative shocks are to be enhanced.
One of the initialization methods (G05KFF not in this release) (for a repeatable sequence if computed sequentially) or (G05KGF not in this release) (for a non-repeatable sequence) must be called prior to the first call to g05pf.
References
Bollerslev T (1986) Generalised autoregressive conditional heteroskedasticity Journal of Econometrics 31 307–327
Engle R (1982) Autoregressive conditional heteroskedasticity with estimates of the variance of United Kingdom inflation Econometrica 50 987–1008
Engle R and Ng V (1993) Measuring and testing the impact of news on volatility Journal of Finance 48 1749–1777
Glosten L, Jagannathan R and Runkle D (1993) Relationship between the expected value and the volatility of nominal excess return on stocks Journal of Finance 48 1779–1801
Hamilton J (1994) Time Series Analysis Princeton University Press
Error Indicators and Warnings
Errors or warnings detected by the method:
On entry, or .
On entry, .
On entry, .
On entry, .
On entry, , or for some .
- On entry, for some .
- On entry, .
On entry, and .
On entry, .
On entry, state vector was not initialized or has been corrupted.
Accuracy
Not applicable.
Parallelism and Performance
None.
Further Comments
None.