Description Usage Arguments Value Examples
Computes precision and recall statistics separating observed from hidden variables, and (FPR,FNR) for hidden variables .
1 | ppvtpr(probs, G, r, thresh = 0.5)
|
probs |
Matrix of estimated edges probabilities. |
G |
Original graph. |
r |
Number of missing actors. |
thresh |
Required threshold for criteria computations, default to 0.5. |
PPV: precision of the whole data.
PPVH: precision regarding observed data.
PPVO: precision regarding hidden data.
TPR: recall of the whole data.
TPRH: recall regarding observed data.
TPRO: recall regarding hidden data.
FPRH: false Positive Rate of hidden data.
FNRH: false Negative Rate of hidden data.
1 2 3 4 5 6 7 8 9 10 11 12 | data=generate_missing_data(n=100,p=10,r=1,type="scale-free", plot=FALSE)
PLNfit<-norm_PLN(data$Y)
MO<-PLNfit$MO
SO<-PLNfit$SO
sigma_O=PLNfit$sigma_O
#-- use true clique for example
initClique=data$TC
#-- initialize the VEM
initList=initVEM(cliqueList=initClique,sigma_O, MO,r=1 )
nestorFit=nestorFit(MO,SO, initList=initList, maxIter=3,verbatim=1 )
#-- obtain criteria
ppvtpr(nestorFit$Pg,r=1, data$G)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.