Learn R Programming

FlexRL (version 0.1.0)

sampleD: sampleD

Description

sampleD

Usage

sampleD(S, LLA, LLB, LLL, gamma, loglik, nlinkrec, sumRowD, sumColD)

Value

List:

  • new set of links

  • new sumRowD

  • new sumColD

  • new value of the complete log likelihood

  • new number fo linked records

Arguments

S

IntegerMatrix where each row correspond to the indices (from source A and source B) of records for which the true values matches (representing the potential links)

LLA

NumericVector gives the likelihood contribution of each non linked record from A

LLB

NumericVector gives the likelihood contribution of each non linked record from B

LLL

NumericVector gives the likelihood contribution of each potential linked records (from select)

gamma

NumericVector repeats the value of the parameter gamma (proportion of linked records) number of potential linked records (nrow of S) times

loglik

double for the value of the current complete log likelihood of the model

nlinkrec

integer for the current number of linked records

sumRowD

A LogicalVector vector indicating, for each row of the linkage matrix, i.e. for each record in the smallest file A, whether the record has a link in B or not.

sumColD

A LogicalVector vector indicating, for each column of the linkage matrix, i.e. for each record in the largest file B, whether the record has a link in A or not.