|
<< Click to Display Table of Contents >> ANALYZE |
![]() ![]()
|
ANALYZE calculates statistics on one or more timeseries or timeseries expressions.
For each expression, Gekko prints out mean, standard deviation, and min and max values. In addition, cross-correlations are computed if there are more than one expression, and the cross-correlations is put into the matrix #corr.
Syntax
analyze <period> variables;
period |
(Optional). Local period, for instance 2010 2020, 2010q1 2020q4 or %per1 %per2+1. |
variables |
A list of variables (timeseries expressions) |
•If no period is given inside the <...> angle brackets, the global period is used (cf. TIME).
•If a variable without databank indication is not found in the first-position databank, Gekko will look for it in other open databanks if databank search is active (cf. MODE).
Examples
Analyze the growth rate of the three variables x, y, z:
time 2001 2005; |
Note
The cross-correlations are computed as Pearson product-moment correlation coefficients.
If you square the cross-correlation matrix (prt multiply(#corr, #corr);), these squared values correspond to the R2 values you obtain by pairwise linear regression between the variables, for instance ols x2 = x1;.
Related statements