View source: R/FlexRecordLinkage.r
logPossibleConfig | R Documentation |
This function helps calculating the number of possible designs for Delta given by nB!/(nB-nLinks)! Needed to compute the log likelihood of the linkage matrix.
logPossibleConfig(Brecords, sumD)
Brecords |
Number of records in data source B (the largest). |
sumD |
Number of linked records (at a specific time point of the algorithm). |
The sum of logs of the vector going from nB - nLinks + 1 to nB.
sumColD = c(0,0,0,0,1,0,0,0,1,0,1,0,1,0,1)
links = base::data.frame(list(idxA=c(5,9,11,12,13), idxB=c(5,9,11,13,15)))
possconfig = logPossibleConfig(length(sumColD),nrow(links))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.