Learn R Programming

VBLPCM (version 2.4.9)

vblpcmroc: ROC curve plot for vblpcmfit

Description

Plot a Receiver Operating Curve to show model fit in terms of link prediction.

Usage

vblpcmroc(v.params, NUM=100)

Value

The Area Under the Curve (AUC). The closer to 1 the better the fit.

Arguments

v.params

The fitted values; output from vblpcmfit()

NUM

The number of intervals on the roc curve

Author

Michael Salter-Townshend

Details

A threshold is varied between zero and one. At each point the probability of a link between all pairs of nodes is calculated on the v.params argument containing a fitted vblpcm object. If greater than the threshold the link is "predicted" present, else it is "predicted" absent. A plot of the proportion of true and false positives for each threshold value is thus obtained.