Package: sochcontagion 0.1.0
sochcontagion: Scale-Ordered Contagion: Spectral Theory and Tests of Heterogeneous Information Adaptation
A spectral theory of financial contagion under heterogeneous information adaptation, with the estimators and falsifiable tests it implies. Modelling both the source and the receiving market as exponential information filters yields a bi-exponential transmission response whose power spectrum is the product of two Lorentzians; the slower market supplies the binding spectral corner. Projected onto a maximal-overlap discrete wavelet basis (Percival and Walden, 2000, ISBN:9780521685085) this gives a closed-form transfer-entropy-by-scale profile and three predictions (Scale-Ordered Contagion): scale ordering by adaptation speed, shape symmetry across direction, and magnitude asymmetry. The package provides the closed-form spectrum and scale power, a profile-matching estimator that recovers adaptation rates and endogenises the fast/slow classification, the wavelet-quantile directional-gain measure built from the transfer-entropy estimator of Schreiber (2000) <doi:10.1103/PhysRevLett.85.461> with quantile conditioning (Koenker and Bassett, 1978) <doi:10.2307/1913643> and the quantile goodness-of-fit of Koenker and Machado (1999) <doi:10.1080/01621459.1999.10473882>, and the three tests with phase-randomised surrogate (Theiler, Eubank, Longtin, Galdrikian and Farmer, 1992) <doi:10.1016/0167-2789(92)90102-S> and stationary block-bootstrap (Politis and Romano, 1994) <doi:10.1080/01621459.1994.10476870> nulls. Bundled G20 equity returns and replication scripts reproduce the headline results; the package is general-purpose and accommodates user-supplied returns.
Authors:
sochcontagion_0.1.0.tar.gz
sochcontagion_0.1.0.zip(r-4.7)sochcontagion_0.1.0.zip(r-4.6)sochcontagion_0.1.0.zip(r-4.5)
sochcontagion_0.1.0.tgz(r-4.6-any)sochcontagion_0.1.0.tgz(r-4.5-any)
sochcontagion_0.1.0.tar.gz(r-4.7-any)sochcontagion_0.1.0.tar.gz(r-4.6-any)
sochcontagion_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
sochcontagion/json (API)
NEWS
| # Install 'sochcontagion' in R: |
| install.packages('sochcontagion', repos = c('https://avishekb9.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/avishekb9/sochcontagion/issues
- g20_returns - Daily Log-Returns of G20 Equity Markets
- market_groups - Advanced / Emerging Market Grouping
Last updated from:17bda21768. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 131 | ||
| source / vignettes | OK | 171 | ||
| linux-release-x86_64 | OK | 115 | ||
| macos-release-arm64 | OK | 172 | ||
| macos-oldrel-arm64 | OK | 151 | ||
| windows-devel | OK | 79 | ||
| windows-release | OK | 77 | ||
| windows-oldrel | OK | 101 | ||
| wasm-release | OK | 105 |
Exports:modwt_detailphase_surrogateplot_market_ratesplot_scale_profilesplot_soch_symmetrysoch_bandssoch_classifysoch_fit_marketsoch_fit_pairsoch_peak_frequencysoch_peak_scalesoch_pipelinesoch_profilessoch_scale_powersoch_spectrumsoch_test_magnitudesoch_test_orderingsoch_test_symmetrysym_klwq_gainwqte_profile
Dependencies:latticeMASSMatrixMatrixModelsmultitaperquantregSparseMsurvivalwaveslim
