Skip to content

Commit 6d74d94

Browse files
committed
added pkgs to various notes; geo-sptemp >> notes on args for EstiStAni; quarto-docs >> added slides sect
1 parent 1aaffb0 commit 6d74d94

8 files changed

Lines changed: 93 additions & 57 deletions

qmd/association-time-series.qmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@
125125
- The smaller the total distance between two series, the greater the association.
126126
- Distance algorithms in the [{dtw}]{style="color: #990000"} and [{dtwclust}]{style="color: #990000"} packages
127127
- Other packages
128+
- [{]{style="color: #990000"}[dCovTS](https://cran.r-project.org/web/packages/dCovTS/index.html){style="color: #990000"}[}]{style="color: #990000"} - Distance Covariance and Correlation for Time Series Analysis
129+
- Both versions of biased and unbiased estimators of distance covariance and correlation are provided.
130+
- Test statistics for testing pairwise independence are also implemented. Some data sets are also included.
128131
- [{]{style="color: #990000"}[distantia](https://github.com/BlasBenito/distantia){style="color: #990000"}[}]{style="color: #990000"} - Qantifies dissimilarity between time series
129132
- Types of ts
130133
- Multivariate and univariate time series.

qmd/feature-engineering-time-series.qmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,7 @@
666666
- Uses a detector statistic that is carefully devised to detect changes in the tail pairwise dependence matrix (TPDM)
667667
- The TPDM acts analogously to the covariance matrix in classical Gaussian statistics, which has made it an increasingly popular tool in the study of multivariate extremes
668668
- Example analyzes multivariate EEG signals from seizure-prone neonatal subjects
669+
- [{]{style="color: #990000"}[rbreak](https://cran.r-project.org/web/packages/rbreak/index.html){style="color: #990000"}[}]{style="color: #990000"} - Methods for detecting structural breaks and estimating break locations for linear multiple regression models under general linear restrictions on the coefficient vector.
669670
- [{]{style="color: #990000"}[RegimeChange](https://cran.r-project.org/web/packages/RegimeChange/index.html){style="color: #990000"}[}]{style="color: #990000"} - A unified framework for detecting regime changes (changepoints) in time series data.
670671
- Implements both frequentist methods including Cumulative Sum (CumSum), Pruned Exact Linear Time (PELT), Binary Segmentation, and Wild Binary Segmentation, as well as Bayesian methods such as Bayesian Online Changepoint Detection (BOCPD), Shiryaev-Roberts
671672
- [{]{style="color: #990000"}[robcp](https://cran.r-project.org/web/packages/robcp/index.html){style="color: #990000"}[}]{style="color: #990000"} - Robust Change-Point Tests

qmd/forecasting-multivariate.qmd

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,32 @@
44

55
- Multivariate time series analysis seeks to analyze several time series jointly. The rationale behind this is the possible presence of interdependences between the different time series.
66
- Packages
7-
- [{]{style="color: #990000"}[bayesianVARs](https://luisgruber.github.io/bayesianVARs/){style="color: #990000"}[}]{style="color: #990000"} ([Papers](https://cran.r-project.org/web/packages/bayesianVARs/index.html)) - Efficient Markov Chain Monte Carlo (MCMC) algorithms for the fully **Bayesian** estimation of vectorautoregressions (VARs) featuring **stochastic volatility** (SV)
8-
- [{]{style="color: #990000"}[cointsmall](https://cran.r-project.org/web/packages/cointsmall/index.html){style="color: #990000"}[}]{style="color: #990000"} - **Cointegration Tests** with Structural Breaks in Small Samples
9-
- [{]{style="color: #990000"}[fbardl](https://cran.r-project.org/web/packages/fbardl/index.html){style="color: #990000"}[}]{style="color: #990000"} - Fourier Bootstrap ARDL **Cointegration Test**
10-
- [{]{style="color: #990000"}[hatemicoint](https://cran.r-project.org/web/packages/hatemicoint/index.html){style="color: #990000"}[}]{style="color: #990000"} - Hatemi-J **Cointegration Test** with Two Unknown Regime Shifts
11-
- [{]{style="color: #990000"}[l1rotation](https://cran.r-project.org/web/packages/l1rotation/index.html){style="color: #990000"}[}]{style="color: #990000"} - **Identify Loading Vectors** under Sparsity in Factor Models
12-
- Uses a sparse representation to overcome rotational indeterminacy and to be able find the true interpretation of how the factors and variables are related.
13-
- [{]{style="color: #990000"}[makicoint](https://cran.r-project.org/web/packages/makicoint/index.html){style="color: #990000"}[}]{style="color: #990000"} - Maki **Cointegration Test** with Structural Breaks
14-
- [{]{style="color: #990000"}[micvar](https://cran.r-project.org/web/packages/micvar/index.html){style="color: #990000"}[}]{style="color: #990000"} - Implements order selection for Vector Autoregressive (VAR) models using the Mean Square Information Criterion (MIC).
15-
- Unlike standard methods such as AIC and BIC, MIC is likelihood-free. This method consistently estimates VAR order and has robust performance under model misspecification
16-
- [{]{style="color: #990000"}[mvardlurt](https://cran.r-project.org/web/packages/mvardlurt/index.html){style="color: #990000"}[}]{style="color: #990000"} - Multivariate **ARDL Unit Root Test**
17-
- [{]{style="color: #990000"}[mvgam](https://nicholasjclark.github.io/mvgam/){style="color: #990000"}[}]{style="color: #990000"} - **Bayesian (Dynamic) GAMs**
18-
- Constructs State-Space models that can include highly flexible nonlinear predictor effects for both process and observation components by leveraging functionalities from the impressive brms and mgcv packages
19-
- [{]{style="color: #990000"}[NetVAR](https://cran.r-project.org/web/packages/NetVAR/index.html){style="color: #990000"}[}]{style="color: #990000"} - VAR Models with tailored regularization structures are provided to **uncover network type structures** in the data, such as influential time series (**influencers**).
20-
- [{]{style="color: #990000"}[nonParQuantileCausality](https://cran.r-project.org/web/packages/nonParQuantileCausality/index.html){style="color: #990000"}[}]{style="color: #990000"} - Nonparametric Causality in Quantiles Test (granger causality type of test)
21-
- [{]{style="color: #990000"}[statioVAR](https://cran.r-project.org/web/packages/statioVAR/index.html){style="color: #990000"}[}]{style="color: #990000"} - **Trend Removal** for Vector Autoregressive Workflows
22-
- [{]{style="color: #990000"}[VARcpDetectOnline](https://cran.r-project.org/web/packages/VARcpDetectOnline/index.html){style="color: #990000"}[}]{style="color: #990000"} - Sequential Change Point Detection for High-Dimensional VAR Models. Effectively **identifies shifts in temporal and cross-correlations** within high-dimensional time series data
7+
- [Cointegration and Granger Causality]{.underline}
8+
- [{]{style="color: #990000"}[caustests](https://cran.r-project.org/web/packages/caustests/index.html){style="color: #990000"}[}]{style="color: #990000"} - Multiple **Granger Causality** Tests
9+
- [{]{style="color: #990000"}[cointsmall](https://cran.r-project.org/web/packages/cointsmall/index.html){style="color: #990000"}[}]{style="color: #990000"} - Cointegration Tests with **Structural Breaks in Small Samples**
10+
- [{]{style="color: #990000"}[cointests](https://cran.r-project.org/web/packages/cointests/index.html){style="color: #990000"}[}]{style="color: #990000"} - Comprehensive Cointegration Tests with **Fourier and Panel Methods**
11+
- Fourier-based cointegration tests (FADL, FEG, FEG2, Tsong) that accommodate smooth structural breaks via flexible Fourier terms
12+
- Panel CADF cointegration tests with structural breaks using the Common Correlated Effects (CCE) estimator
13+
- [{]{style="color: #990000"}[fbardl](https://cran.r-project.org/web/packages/fbardl/index.html){style="color: #990000"}[}]{style="color: #990000"} - **Fourier Bootstrap ARDL** Cointegration Test
14+
- [{]{style="color: #990000"}[hatemicoint](https://cran.r-project.org/web/packages/hatemicoint/index.html){style="color: #990000"}[}]{style="color: #990000"} - **Hatemi-J** Cointegration Test with Two Unknown Regime Shifts
15+
- [{]{style="color: #990000"}[makicoint](https://cran.r-project.org/web/packages/makicoint/index.html){style="color: #990000"}[}]{style="color: #990000"} - **Maki** Cointegration Test with Structural Breaks
16+
- [{]{style="color: #990000"}[nonParQuantileCausality](https://cran.r-project.org/web/packages/nonParQuantileCausality/index.html){style="color: #990000"}[}]{style="color: #990000"} - Nonparametric Causality in Quantiles Test (granger causality type of test)
17+
- [{]{style="color: #990000"}[xtdhcoint](https://cran.r-project.org/web/packages/xtdhcoint/index.html){style="color: #990000"}[}]{style="color: #990000"} - **Durbin-Hausman Panel** Cointegration Tests
18+
- Robust to cross-sectional dependence through common factor extraction using principal components.
19+
- Provides both group-mean (DHg) and panel (DHp) test statistics with automatic factor number selection via information criteria
20+
- [Vector Autoregression (VAR)]{.underline}
21+
- [{]{style="color: #990000"}[bayesianVARs](https://luisgruber.github.io/bayesianVARs/){style="color: #990000"}[}]{style="color: #990000"} ([Papers](https://cran.r-project.org/web/packages/bayesianVARs/index.html)) - Efficient Markov Chain Monte Carlo (MCMC) algorithms for the fully **Bayesian** estimation of vectorautoregressions (VARs) featuring **stochastic volatility** (SV)
22+
- [{]{style="color: #990000"}[micvar](https://cran.r-project.org/web/packages/micvar/index.html){style="color: #990000"}[}]{style="color: #990000"} - Implements **order selection for Vector Autoregressive** (VAR) models using the Mean Square Information Criterion (MIC).
23+
- Unlike standard methods such as AIC and BIC, MIC is likelihood-free. This method consistently estimates VAR order and has robust performance under model misspecification
24+
- [{]{style="color: #990000"}[NetVAR](https://cran.r-project.org/web/packages/NetVAR/index.html){style="color: #990000"}[}]{style="color: #990000"} - VAR Models with tailored regularization structures are provided to **uncover network type structures** in the data, such as influential time series (**influencers**).
25+
- [{]{style="color: #990000"}[statioVAR](https://cran.r-project.org/web/packages/statioVAR/index.html){style="color: #990000"}[}]{style="color: #990000"} - **Trend Removal** for Vector Autoregressive Workflows
26+
- [{]{style="color: #990000"}[VARcpDetectOnline](https://cran.r-project.org/web/packages/VARcpDetectOnline/index.html){style="color: #990000"}[}]{style="color: #990000"} - Sequential Change Point Detection for High-Dimensional VAR Models. Effectively **identifies shifts in temporal and cross-correlations** within high-dimensional time series data
27+
- [General]{.underline}
28+
- [{]{style="color: #990000"}[l1rotation](https://cran.r-project.org/web/packages/l1rotation/index.html){style="color: #990000"}[}]{style="color: #990000"} - **Identify Loading Vectors** under Sparsity in Factor Models
29+
- Uses a sparse representation to overcome rotational indeterminacy and to be able find the true interpretation of how the factors and variables are related.
30+
- [{]{style="color: #990000"}[mvardlurt](https://cran.r-project.org/web/packages/mvardlurt/index.html){style="color: #990000"}[}]{style="color: #990000"} - Multivariate **ARDL Unit Root Test**
31+
- [{]{style="color: #990000"}[mvgam](https://nicholasjclark.github.io/mvgam/){style="color: #990000"}[}]{style="color: #990000"} - **Bayesian (Dynamic) GAMs**
32+
- Constructs State-Space models that can include highly flexible nonlinear predictor effects for both process and observation components by leveraging functionalities from the impressive brms and mgcv packages
2333
- Resources
2434
- [Model Checking for Vector Autoregressive Models](https://osf.io/preprints/psyarxiv/k6uz4_v2) ([Github](https://github.com/jmbh/ModelCheckingForVAR)) - Diagnostics for VAR models
2535
- Papers

qmd/forecasting-statistical.qmd

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@
186186
- KPSS-type tests are intended to complement unit root tests, such as the Dickey–Fuller tests. By testing both the unit root hypothesis and the stationarity hypothesis, one can distinguish series that appear to be stationary, series that appear to have a unit root, and series for which the data (or the tests) are not sufficiently informative to be sure whether they are stationary.
187187
- [{]{style="color: #990000"}[boundedur](https://cran.r-project.org/web/packages/boundedur/index.html){style="color: #990000"}[}]{style="color: #990000"} - Unit Root Tests for Bounded Time Series
188188
- [{]{style="color: #990000"}[qadf](https://cran.r-project.org/web/packages/qadf/index.html){style="color: #990000"}[}]{style="color: #990000"} - Quantile Autoregressive Distributed Lag Unit Root Test
189+
- [unitrootests](https://cran.r-project.org/web/packages/unitrootests/index.html) - Comprehensive Unit Root and Stationarity Tests
190+
- Quantile ADF tests ([Paper](https://doi.org/10.1198%2F016214504000001114))
191+
- GARCH-based unit root tests with endogenous structural breaks ([Paper](https://doi.org/10.1016%2Fj.eneco.2014.11.021))
192+
- Comprehensive Dickey-Fuller, Phillips-Perron, KPSS, ERS/DF-GLS, Zivot-Andrews, and Kobayashi-McAleer tests with an Elder-Kennedy decision strategy ([Paper](https://doi.org/10.1080%2F00220480109595179))
189193
- Steps:
190194
1. ADF:
191195
1. If H~0~ rejected. The trend (if any) can be represented by a deterministic linear trend.
@@ -334,7 +338,7 @@
334338
- Drift
335339

336340
| **Feature** | **Random Walk without Drift** | **Random Walk with Drift** |
337-
|:---|:---|:---|
341+
|:-----------------------|:-----------------------|:-----------------------|
338342
| Steps | Purely random, equal probability left/right | Biased, one direction slightly more likely |
339343
| Change in value | Average change is zero | Average change includes a constant drift |
340344
| Path | Zig-zag around starting point | Zig-zag with upward/downward trend |

qmd/geospatial-spat-temp.qmd

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@
2424
- Highly parallelizable and hence, much faster than traditional Markov chain Monte Carlo algorithms while delivering competitive predictive performance
2525
- Fits **Bayesian spatially-temporally varying coefficients (STVC) generalized linear models** without MCMC
2626
- [{]{style="color: #990000"}[stdbscan](https://cran.r-project.org/web/packages/stdbscan/index.html){style="color: #990000"}[}]{style="color: #990000"} - Spatio-Temporal **DBSCAN Clustering**
27+
- [{]{style="color: #990000"}[spacetime](https://cran.r-project.org/web/packages/spacetime/index.html){style="color: #990000"}[}]{style="color: #990000"} - Superceded by [{stars}]{style="color: #990000"}. Extends the shared classes defined in [{sp}]{style="color: #990000"} for spatio-temporal data.
28+
- [{stars}]{style="color: #990000"} uses PROJ and GDAL through [{sf}]{style="color: #990000"}.
2729
- [{]{style="color: #990000"}[spTimer](https://cran.r-project.org/web/packages/spTimer/index.html){style="color: #990000"}[}]{style="color: #990000"} ([Vignette](https://www.jstatsoft.org/article/view/v063i15)) - Spatio-Temporal **Bayesian Modelling**
2830
- Models: Bayesian Gaussian Process (GP) Models, Bayesian Auto-Regressive (AR) Models, and Bayesian Gaussian Predictive Processes (GPP) based AR Models for spatio-temporal big-n problems
2931
- Depends on [{spacetime}]{style="color: #990000"} and [{sp}]{style="color: #990000"}
3032
- [{]{style="color: #990000"}[stars](https://r-spatial.github.io/stars/){style="color: #990000"}[}]{style="color: #990000"} - **Reading, manipulating, writing and plotting** spatiotemporal arrays (raster and vector data cubes) in 'R', using 'GDAL' bindings provided by 'sf', and 'NetCDF' bindings by 'ncmeta' and 'RNetCDF'
3133
- Only handles **full lattice/grid** data
32-
- It supercedes the [{]{style="color: #990000"}[spacetime](https://cran.r-project.org/web/packages/spacetime/index.html){style="color: #990000"}[}]{style="color: #990000"}, which extended the shared classes defined in [{sp}]{style="color: #990000"} for spatio-temporal data. [{stars}]{style="color: #990000"} uses PROJ and GDAL through [{sf}]{style="color: #990000"}.
34+
- It supercedes [{spacetime}]{style="color: #990000"}, which extended the shared classes defined in [{sp}]{style="color: #990000"} for spatio-temporal data. [{stars}]{style="color: #990000"} uses PROJ and GDAL through [{sf}]{style="color: #990000"}.
3335
- Easily convert spacetime objects to stars object with `st_as_stars(spacetime_obj)`
3436
- Has [dplyr verb methods](https://r-spatial.github.io/stars/reference/dplyr.html)
3537
- [{]{style="color: #990000"}[WaveST](https://cran.r-project.org/web/packages/WaveST/index.html){style="color: #990000"}[}]{style="color: #990000"} - An integrated **wavelet-based spatial time series modeling** framework designed to enhance predictive accuracy under noisy and nonstationary conditions by jointly exploiting multi-resolution (wavelet) information and spatial dependence
@@ -1860,11 +1862,26 @@
18601862
- See [Terms](geospatial-spat-temp.qmd#sec-geo-sptemp-terms){style="color: green"} \>\> Anisotropy, [`vgmST`](geospatial-spat-temp.qmd#sec-geo-sptemp-krig-var-vgmst){style="color: green"} \>\> Metric, Sum Metric, and Simple Sum Metric
18611863
- Default is NA and will be understood as identity (1 temporal unit = 1 spatial unit)
18621864
- Docs says this assumption is rarely the case so could be worth including to see if it improves performance
1865+
- Arguments
1866+
- [empVgm]{.arg-text} - Empircal variogram (`variogramST`)
1867+
- [interval]{.arg-text} - The interval to search for the stAni value
1868+
- [method]{.arg-text} - Method used to estimate the value (see below)
1869+
- [spatialVgm]{.arg-text} - `vgm` specification for the spatial model
1870+
- [temporalVgm]{.arg-text} - `vgm` specification for the temporal model
1871+
- [s.range]{.arg-text} - Spatial cutoff value (for linear model)
1872+
- [t.range]{.arg-text} - Temporal cutoff value (for linear model)
18631873
- Anisotropy Estimation Heuristics using `estiStAni`
18641874
- [method = "linear"]{.arg-text} - Rescales a linear model
1875+
- Requires [empVgm]{.arg-text}, [interval]{.arg-text} arguments
1876+
- Recommended to also specify [s.range]{.arg-text} and [t.range]{.arg-text} arguments
1877+
- i.e. where *before* this value, there's a sharp increase. The function will drop values after this distance/time in order to get a good linear fit.
1878+
- Technically the function will run without these value set but you probably need to set them in most cases to get an unbiased estimate
18651879
- [method = "range"]{.arg-text} - Estimates equal ranges
1880+
- Requires [empVgm]{.arg-text}, [spatialVgm]{.arg-text}, and [temporalVgm]{.arg-text} arguments
18661881
- [method = "vgm"]{.arg-text} - Rescales a pure spatial variogram
1882+
- Requires [empVgm]{.arg-text}, [interval]{.arg-text}, and [spatialVgm]{.arg-text} arguments
18671883
- [method = "metric"]{.arg-text} - Estimates a complete spatio-temporal metric variogram model and returns its spatio-temporal anisotropy parameter.
1884+
- Requires [empVgm]{.arg-text}, [interval]{.arg-text}, and [spatialVgm]{.arg-text} arguments
18681885

18691886
#### Diagnostics {#sec-geo-sptemp-krig-var-diag .unnumbered}
18701887

0 commit comments

Comments
 (0)