plotCV {patterncausality} | R Documentation |
Plot Cross-Validation Results for Pattern Causality
Description
The plotCV
function generates a plot to visualize the results of cross-validation for pattern causality. It displays the positive, negative, and dark causality strengths across different sample sizes, providing a clear graphical representation of the cross-validation outcomes.
Usage
plotCV(pcCV, fr = FALSE)
Arguments
pcCV |
A data frame containing the cross-validation results from the |
fr |
A bool value for the plot frame |
Value
A plot visualizing the positive, negative, and dark causality strengths across different sample sizes. The plot includes points and lines for each causality type, along with a legend for easy interpretation.
Examples
data(DJS)
X <- DJS$X3M
Y <- DJS$American.Express
numberset <- c(1000,2000,3000,4000)
result <- pcCrossValidation(X,Y,3,2,"euclidean",1,FALSE,numberset)
plotCV(result,FALSE)
[Package patterncausality version 0.1.3 Index]