Calculate weights and probabilities for pairs
# S3 method for problink_em
predict(object, pairs = newdata, newdata = NULL,
type = c("weights", "mpost", "probs", "all"), binary = FALSE, comparators,
...)
an object of type problink_em
as produced by
problink_em
.
a object with pairs for which to calculate weights.
an alternative name for the pairs
argument. Specify
newdata
or pairs
.
a character vector of length one specifying what to calculate. See results for more information.
convert comparison vectors to binary vectors using the comparison function in comparators.
a list of comparison functions (see compare_pairs
).
When missing attr(pairs, 'comparators')
is used.
unused.
In case of type == "weights"
returns a vector (lvec
or
regular R-vector depending on the type of pairs
). with the linkage weights.
In case of type == "mpost"
returns a vector with the posterior m-probabilities
(probability that a pair is a match). In case of type == "probs"
returns a
data.frame or ldat
with the m- and u-probabilities and posterior
m- and u probabilities. In case type == "all"
returns a data.frame
or
ldat
with both probabilities and weights.