Description Usage Arguments Value Examples
View source: R/MultipleTSsimulation.R
checkMultipleSimulationVLtimeseries is a support function that can compare two adjacency matrices: groundtruth and inferred matrices. It re
1 | checkMultipleSimulationVLtimeseries(trueAdjMat, adjMat)
|
trueAdjMat |
a groundtruth matrix. |
adjMat |
an inferred matrix. |
This function returns a list of precision prec
, recall rec
, and F1 score F1
of inferred vs. groundtruth matrices.
1 2 3 4 5 6 7 8 | ## Generate simulation data
#G<-matrix(FALSE,10,10) # groundtruth
#G[1,c(4,7,8,10)]<-TRUE
#G[2,c(5,7,9,10)]<-TRUE
#G[3,c(6,8,9,10)]<-TRUE
#TS <- MultipleSimulationVLtimeseries()
#out<-multipleVLGrangerFunc(TS)
#checkMultipleSimulationVLtimeseries(trueAdjMat=G,adjMat=out$adjMat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.