assess_direct {sparsenetgls} | R Documentation |
The assess_direct function is designed to produce the prediction accuracy of a Gaussian Graphical model(GGM) to the true graph structure with a known precision matrix.
assess_direct(PREC_for_graph, OMEGA_for_graph, p)
PREC_for_graph |
It is the known precision matrix which is used to assess the estimated precision matrix from GGM. |
OMEGA_for_graph |
It is the estimated precision matrix from a GGM. |
p |
It is an integer representing the number of dimension of both the known and estimated precision matrix. |
Return the list of assessment results including sensitivity, specificity, NPV(test negative), PPV(test positive), true positive and true negative.
prec1 <- matrix(c(0,2,3,1,0,0.5,0,0,0.4),nrow=3,ncol=3) prec0 <- matrix(c(0,1,2,1,0.5,0.2,0,1,1),nrow=3,ncol=3) assessresult <- assess_direct(prec1,prec0,p=3)