plot.ClusterVAR {ClusterVAR} | R Documentation |
Visualizing Model fit and information criteria
Description
Creates a variety of plots summarizing fitted LCVAR models.
Usage
## S3 method for class 'ClusterVAR'
plot(x,
show,
Number_of_Clusters = NULL,
Number_of_Lags = NULL,
Model = NULL,
...)
Arguments
x |
An output object of the |
show |
Indicate summaries to plot. Alternatively, the VAR matrices of a specific model can be visualized. |
Number_of_Clusters |
An integer. Specify the fixed number of clusters when using |
Number_of_Lags |
An integer. Specify the fixed number of lags when using |
Model |
An integer vector. Specify when using |
... |
Pass additional arguments. |
Details
Creates different plots showing either a fitted LCVAR model or fit indices for a specified set of LCVAR models.
Value
No return value, just plots figure.
Author(s)
Anja Ernst & Jonas Haslbeck
Examples
LCVAR_outExample <- LCVAR(Data = ExampleData,
yVars = 1:4, ID = 5, Beep = 6,
xContinuous = 7, xFactor = 8,
Clusters = 1:2, Lags = 1:2,
Center = FALSE, Cores = 2,
RndSeed = 3, Rand = 2,
it = 25)
plot(LCVAR_outExample, show = "GNL", Number_of_Lags = 1)
plot(LCVAR_outExample, show = "GNC", Number_of_Clusters = 2)
plot(LCVAR_outExample, show = "specific", Model = c(1, 1))
plot(LCVAR_outExample, show = "specific", Model = c(1, 1), labels = c("A", "B", "C","D"))
plot(LCVAR_outExample, show = "specificDiff", Model = c(1, 1))