dirconn.analytic_gc_test#
- dirconn.analytic_gc_test(estimator: GC, data: TimeSeries, *, alpha: float = 0.05) AnalyticTestResult#
Test Granger causality with the F distribution of nested least-squares models.
- Parameters:
estimator (GC) – Must have
ridge=0andmethod="refit": with a penalty the models are not ordinary least squares, and the reduced models ofmethod="state_space"are not least-squares fits, so the F distribution does not apply.data (TimeSeries) – Input data.
alpha (float) – Default level for
AnalyticTestResult.significant().
- Return type:
- Raises:
TypeError – If
estimatoris not aGC.ValueError – With a ridge penalty,
method="state_space", or when the data leave no residual degrees of freedom.