EconPapers    
Economics at your fingertips  
 

GRANGERSPEC: Stata module to Granger causality tests across frequencies: Granger-causality spectra

H. Ozan Eruygur

Statistical Software Components from Boston College Department of Economics

Abstract: grangerspec provides seven tools for Granger causality in the frequency domain. All series must be stationary, I(0): the spectra and every test are built on stationary-VAR representations, and a stable VAR (every companion root modulus below one) is assumed. Difference or detrend integrated series first - the article's own application passes all six series through the Hodrick-Prescott filter before testing - and check the Stability line of the output. Time-domain Granger causality only says whether the past of a series y helps predict a series x overall. The frequency-domain Granger-causality spectrum of Geweke (1982, 1984) instead measures the strength of the causal link at each frequency, so that causality at low (business-cycle) and high frequencies can be distinguished. Inference on these spectra, however, is an open problem: the limiting distribution of the estimated spectrum under the null of no causality is unknown (Farne and Montanari 2022, Section 2.2). Farne and Montanari propose a bootstrap solution: they test each frequency-specific causality against the distribution of the median causality across frequencies computed on stationary-bootstrap series that are independent by construction, so that the null hypothesis is stochastic independence between the series. grangerspec computes the spectra and performs this bootstrap test.

Language: Stata
Requires: Stata version 14
Keywords: Granger causality; frequency domain; spectrum (search for similar items in EconPapers)
Date: 2026-08-05
Note: This module should be installed from within Stata by typing "ssc install grangerspec". The module is made available under terms of the MIT license (https://opensource.org/licenses/MIT).
References: Add references at CitEc
Citations:

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/g/grangerspec.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/g/grangerspec.sthlp help file (text/plain)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s459854

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2026-08-07
Handle: RePEc:boc:bocode:s459854