precision {bstrl}R Documentation

Calculate the precision of estimated links relative to true links

Description

Calculate the precision of estimated links relative to true links

Usage

precision(sl.est, sl.true)

Arguments

sl.est

streaminglinks object representing link estimates

sl.true

streaminglinks object representing true links

Value

The precision of the estimated links.

Examples

data(geco_small)
data(geco_small_result)

sl.true <- fromentities(geco_small[[1]]$entity, geco_small[[2]]$entity,
                        geco_small[[3]]$entity, geco_small[[4]]$entity)

posterior <- extractlinks(geco_small_result)
# Compare one posterior sample to previously computed known truth
class(sl.true)
precision(posterior[[42]], sl.true)


[Package bstrl version 1.0.2 Index]