Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/nodeStatsVAR1.r
Function that calculates for each variate various statistics from a sparse VAR(1) model
1 | nodeStatsVAR1(sparseA, sparseP, as.table = FALSE)
|
sparseA |
A |
sparseP |
Precision |
as.table |
A |
The function calculates various node statistics from a sparse VAR(1) model. The input matrices \mathbf{A} and \mathbf{Ω}_{\varepsilon} are assumed to be sparse autoregression coefficient and error precision matrices. From these matrices the global and contemporaneous conditional independence graphs are obtained (Dahlhaus, 2000; Dahlhaus, Eichler, 2003).
For both graph types the function calculates various measures of centrality: node degree, betweenness centrality, closeness centrality, and eigenvalue centrality. It also calculates the number of positive and the number of negative edges for each node. For more information on network measures, consult, e.g., Newman (2010).
In addition, for each variate the mutual information (with all other variates) (Miok et al., 2017), mean impulse response (Hamilton, 1994; Lutkepohl 2005), the (error) variance, and the partial error variance are presented.
An object of class list
(when as.table = FALSE
) with slots:
degreeAin |
A |
degreeAout |
A |
nNegAin |
A |
nPosAin |
A |
nNegAout |
A |
nPosAout |
A |
degreePe |
A |
betweennessPe |
A |
closenessPe |
A |
eigenCentralityPe |
A |
nNegPe |
A |
nPosPe |
A |
variancePe |
A |
partialVarPe |
A |
varianceY |
A |
degreePy |
A |
betweennessPy |
A |
closenessPy |
A |
eigenCentralityPy |
A |
mutualInfo_Tplus1 |
A |
mutualInfo_Tplus2 |
A |
itemResponse_Tplus1 |
A |
itemResponse_Tplus2 |
A |
When as.table = TRUE
the list items above are represented in tabular form as an object of
class matrix
.
Future versions of this function may include additional statistics
Wessel N. van Wieringen <w.vanwieringen@vumc.nl>, Carel F.W. Peeters.
Dahlhaus (2000), “Graphical interaction models for multivariate time series”, Metrika, 51, 157-172.
Dahlhaus, Eichler (2003), “Causality and graphical models in time series analysis”, Oxford Statistical Science Series, 115-137.
Hamilton, J. D. (1994), Time Series Analysis. Princeton: Princeton university press.
Lutkepohl, H. (2005), New Introduction to Multiple Time Series Analysis. Springer, Berlin.
Newman, M.E.J. (2010). Networks: An Introduction, Oxford University Press.
Miok, V., Wilting, S.M., Van Wieringen, W.N. (2017), “Ridge estimation of the VAR(1) model and its time series chain graph from multivariate time-course omics data”, Biometrical Journal, 59(1), 172-191.
ridgeVAR1
, sparsifyVAR1
, graphVAR1
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.