g05pg generates a given number of terms of an exponential process (see Engle and Ng (1993)).
Syntax
C# |
---|
public static void g05pg( string dist, int num, int ip, int iq, double[] theta, int df, double[] ht, double[] et, bool fcall, double[] r, G05..::..G05State g05state, out int ifail ) |
Visual Basic |
---|
Public Shared Sub g05pg ( _ dist As String, _ num As Integer, _ ip As Integer, _ iq As Integer, _ theta 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 g05pg( String^ dist, int num, int ip, int iq, array<double>^ theta, int df, array<double>^ ht, array<double>^ et, bool fcall, array<double>^ r, G05..::..G05State^ g05state, [OutAttribute] int% ifail ) |
F# |
---|
static member g05pg : dist : string * num : int * ip : int * iq : int * theta : 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 initial parameter estimates for the vector . The first element must contain the coefficient and the next iq elements must contain the autoregressive coefficients , for . The next iq elements must contain the coefficients , for . The next ip elements must contain the moving average coefficients , for .Constraints:
- ;
- .
- 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 g05pg, 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
An exponential process is represented by:
where , denotes the expected value of , 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 .
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 g05pg.
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, and .
On entry, .
On entry, state vector was not initialized or has been corrupted.
- Invalid sequence generated, use different parameters.
Accuracy
Not applicable.
Parallelism and Performance
None.
Further Comments
None.