Learn R Programming

FlexRL (version 0.1.0)

logPossibleConfig: logPossibleConfig

Description

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.

Usage

logPossibleConfig(Brecords, sumD)

Value

The sum of logs of the vector going from nB - nLinks + 1 to nB.

Arguments

Brecords

Number of records in data source B (the largest).

sumD

Number of linked records (at a specific time point of the algorithm).

Examples

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

Run the code above in your browser using DataLab