links.compare: This function takes a set of pairwise links and identifies...

Description Usage Arguments Value Examples

View source: R/analyzeGibbs.R

Description

This function takes a set of pairwise links and identifies correct, incorrect, and missing links (correct = estimated and true, incorrect = estimated but not true, missing = true but not estimated)

Usage

1
links.compare(est.links.pair, true.links.pair, counts.only = TRUE)

Arguments

est.links.pair

The number of estimated links

true.links.pair

The number of true links

counts.only

State whether or not counts only is true or false

Value

Gives a vector of the estimated and true links, estimated but not true links, and the true but not estimated links

Examples

1
2
3
4
5
6
id <- c(1,2,3,4,5,1,7,8,9,10,11,12,13,14,15,16,17,18,19,20)
lam.gs <- matrix(c(1,1,2,2,3,3,5,6,4,3,4,5,3,2,4,1,2,3,4,2),ncol=20, nrow=4)
est.links <- links(lam.gs)
true.links <- links(matrix(id,nrow=1))
est.links.pair <- pairwise(est.links)
links.compare(est.links.pair, true.links=id)

blink documentation built on Oct. 23, 2020, 6:43 p.m.