Description Usage Arguments Author(s) References See Also Examples
Graphs of the (conditional independence, temporal, or contemporaneous) relations among the variates as implied by the parameters of the VAR(1) model.
1 2 3 4 5 6 | graphVAR1(sparseA, sparseP, type="TSCG", side="left", prune=TRUE,
nNames=NULL, main=NULL, vertex.color.T0="lightcyan2",
vertex.color.T1="lightcyan2", vertex.frame.color="steelblue",
vertex.label.cex=-1, vertex.label.color.T0="black",
vertex.label.color.T1="black", vertex.label.font=1.5,
vertex.size=-1, edge.arrow.size=-1, edge.width=-1, ...)
|
sparseA |
A |
sparseP |
Precision |
type |
A |
side |
A |
prune |
A |
nNames |
A |
main |
The |
vertex.color.T0 |
Color of nodes at time point t. |
vertex.color.T1 |
Color of nodes at time point t+1. This is ignored when |
vertex.frame.color |
Refer to |
vertex.label.cex |
Refer to |
vertex.label.color.T0 |
Color of the node label at time point t. |
vertex.label.color.T1 |
Color of the node label at time point t+1. Ignored when |
vertex.label.font |
Refer to |
vertex.size |
Refer to |
edge.arrow.size |
Refer to |
edge.width |
Refer to |
... |
Other arguments to be passed on to |
Wessel N. van Wieringen <w.vanwieringen@vumc.nl>
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.
CIGofVAR1
, sparsify
, sparsifyVAR1
, plot.igraph
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # specify VAR(1) model parameters
A <- matrix(c(-0.1, -0.3, 0, 0.5, 0, 0,
0, 0, -0.4, -0.1, -0.3, 0,
0.5, 0, 0, 0, 0, -0.4,
-0.1, -0.3, 0, 0.5, 0, 0,
0, 0, -0.4, -0.1, -0.3, 0,
0.5, 0, 0, 0, 0, -0.4), byrow=TRUE, ncol=6)
P <- matrix(c( 2, 0, -0.5, 0.5, 0, 0.5,
0, 1, 0.5, 0.5, 0.5, 0,
-0.5, 0.5, 1, 0, 0, 0.5,
0.5, 0.5, 0, 1, 0, 0,
0, 0.5, 0, 0, 1, 0,
0.5, 0, 0.5, 0, 0, 1), byrow=TRUE, ncol=6)
# adjacency matrix of (global) conditional independencies.
graphVAR1(A, P, type="TSCG")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.