islinked {bstrl} | R Documentation |
Return True/False whether the two record are coreferent
Description
Return True/False whether the two record are coreferent
Usage
islinked(sl, file1, record1, file2, record2)
Arguments
sl |
A streaming link object |
file1 , record1 |
The file number and record number of the first record |
file2 , record2 |
The file number and record number of the second record. Note that file2 must be greater than file1. |
Value
A boolean value. True if these two records are linked within sl, False otherwise.
Examples
data(geco_small_result)
samples <- extractlinks(geco_small_result)
# Are record 9 in file 1 and record 7 in file 4 linked in the first posterior sample?
islinked(samples[[1]], file1=1, record1=9, file2=4, record2=7)
# In what proportion of posterior samples are record 9 in file 1 and record 7 in file 4 linked?
mean(sapply(samples, islinked, file1=1, record1=9, file2=4, record2=7))
# In what proportion of posterior samples are record 8 in file 1 and record 1 in file 2 linked?
mean(sapply(samples, islinked, file1=1, record1=8, file2=2, record2=1))
[Package bstrl version 1.0.2 Index]