Learn R Programming

bstrl (version 1.0.2)

precision: 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)

Value

The precision of the estimated links.

Arguments

sl.est

streaminglinks object representing link estimates

sl.true

streaminglinks object representing true links

Examples

Run this code
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)

Run the code above in your browser using DataLab