Package: qfa 5.0

Ta-Hsin Li

qfa: Quantile-Frequency Analysis (QFA) of Time Series and Spline Quantile Regression (SQR)

Implementation of quantile frequency analysis (QFA) for time series based on trigonometric quantile regression and of spline quantile regression (SQR) for estimating the coefficients in linear quantile regression models as smooth functions of the quantile level. References: [1] Li, T.-H. (2012). ''Quantile periodograms,'' J. of the American Statistical Association, 107, 765–776. <doi:10.1080/01621459.2012.682815> [2] Li, T.-H. (2014). Time Series with Mixed Spectra, CRC Press. <doi:10.1201/b15154> [3] Li, T.-H. (2025). ''Quantile Fourier transform, quantile series, and nonparametric estimation of quantile spectra,'' Communications in Statistics: Simulation and Computation, 1–22. <doi:10.1080/03610918.2025.2509820> [4] Li, T.-H. (2025). ''Quantile-crossing spectrum and spline autoregression estimation,'' Statistical Inference for Stochastic Processes, 28, 20. <doi:10.1007/s11203-025-09336-7> [5] Li, T.-H. (2025). ''Spline autoregression method for estimation of quantile spectrum,'' J. of Computational and Graphical Statistics, 1-15. <doi:10.1080/10618600.2025.2549452> [6] Li, T.-H., and Megiddo, N. (2026). ''Spline quantile regression,'' J. of Statistical Theory and Practice, 20, 30. <doi:10.1007/s42519-026-00545-8> [7] Li, T.-H. (2026). ''Spline quantile regression with cubic and linear smoothing splines,'' <doi:10.48550/arXiv.2603.22408>.

Authors:Ta-Hsin Li [cre, aut]

qfa_5.0.tar.gz
qfa_5.0.tar.gz(r-4.7-arm64)qfa_5.0.tar.gz(r-4.7-x86_64)qfa_5.0.tar.gz(r-4.6-arm64)qfa_5.0.tar.gz(r-4.6-x86_64)
qfa_5.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
qfa/json (API)

# Install 'qfa' in R:
install.packages('qfa', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ibm/qfa/issues

Uses libs:
  • openblas– Optimized BLAS
Datasets:

On CRAN:

Conda:

openblas

1.34 score 11 scripts 170 downloads 36 exports 28 dependencies

Last updated from:18fc13fe25. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK145
linux-devel-x86_64OK151
source / vignettesOK164
linux-release-arm64OK144
linux-release-x86_64OK158
wasm-releaseOK110

Exports:boot.sqrperqacfqcserqdftqdft2qacfqdft2qperqdft2qserqfa.plotqkl.divergenceqperqper2qserqser2arqser2qacfqser2sarqspec.arqspec.lwqspec.sarqspec2qcohsar.eq.bootstrapsar.eq.testsar.gc.bootstrapsar.gc.coefsar.gc.testsqdftsqdft.fitsqrsqr_deriv.plotsqr.fitsqr.fit.optimsqr.plotsqr1.fitsqr3.fittqr.fittsqr.fit

Dependencies:bootclicodetoolscolorRampsdoParalleldotCall64fieldsforeachiteratorslatticemapsMASSMatrixMatrixModelsmgcvnlmeosqppiqpquantregRColorBrewerRcppRcppEigenRhpcBLASctlS7spamSparseMsurvivalviridisLite

Readme and manuals

Help Manual

Help pageTopics
Birth databirthweight
Bootstrap of Spline Quantile Regression (SQR) Coefficientsboot.sqr
Engel's food expenditure dataengel
Financial indexfinIndex
Periodogram (PER)per
Quantile Autocovariance Function (QACF)qacf
Quantile-Crossing Series (QCSER)qcser
Quantile Discrete Fourier Transform (QDFT)qdft
Quantile Autocovariance Function (QACF)qdft2qacf
Quantile Periodogram (QPER)qdft2qper
Quantile Series (QSER)qdft2qser
Quantile-Frequency Plotqfa.plot
Kullback-Leibler Divergence of Quantile Spectral Estimateqkl.divergence
Quantile Periodogram (QPER)qper
Quantile Periodogram Type II (QPER2)qper2
Quantile Series (QSER)qser
Autoregression (AR) Model of Quantile Seriesqser2ar
ACF of Quantile Series (QSER) or Quantile-Crossing Series (QCACF)qser2qacf
Spline Autoregression (SAR) Model of Quantile Seriesqser2sar
Autoregression (AR) Estimator of Quantile Spectrumqspec.ar
Lag-Window (LW) Estimator of Quantile Spectrumqspec.lw
Spline Autoregression (SAR) Estimator of Quantile Spectrumqspec.sar
Quantile Coherence Spectrumqspec2qcoh
Bootstrap Simulation of SAR Coefficients for Testing Equality of Granger-Causality in Two Samplessar.eq.bootstrap
Wald Test and Confidence Band for Equality of Granger-Causality in Two Samplessar.eq.test
Bootstrap Simulation of SAR Coefficients for Granger-Causality Analysissar.gc.bootstrap
Extraction of SAR Coefficients for Granger-Causality Analysissar.gc.coef
Wald Test and Confidence Band for Granger-Causality Analysissar.gc.test
Spline Quantile Discrete Fourier Transform (SQDFT) of Time Seriessqdft
Spline Quantile Discrete Fourier Transform (SQDFT) of Time Series Given Smoothing Parametersqdft.fit
Spline Quantile Regression by Formulasqr
Plot of Derivative of Spline Quantile Regression Coefficientssqr_deriv.plot
Cubic Spline Quantile Regression with L1-Norm Roughness Penalty (SQR)sqr.fit
Cubic Spline Quantile Regression with L1-Norm Roughness Penalty (SQR) Computed by Gradient Algorithmssqr.fit.optim
Plot of Spline Quantile Regression Coefficientssqr.plot
Linear Spline Quantile Regression with Total-Variation Roughness Penalty (SQR1 or Linear SQR)sqr1.fit
Cubic Spline Quantile Regression with L2-Norm Roughness Penalty (SQR3 or Cubic SQR)sqr3.fit
Trigonometric Quantile Regression (TQR)tqr.fit
Trigonometric Spline Quantile Regression (TSQR) of Time Seriestsqr.fit
Yearly sunspot numbers v1.0yearssn
Yearly sunspot numbers v2.0yearssn2