View source: R/predict_problink_em.R
predict.problink_em | R Documentation |
Calculate weights and probabilities for pairs
## S3 method for class 'problink_em' predict(object, pairs = newdata, newdata = NULL, type = c("weights", "mpost", "probs", "all"), binary = FALSE, comparators, ...)
object |
an object of type |
pairs |
a object with pairs for which to calculate weights. |
newdata |
an alternative name for the |
type |
a character vector of length one specifying what to calculate. See results for more information. |
binary |
convert comparison vectors to binary vectors using the comparison function in comparators. |
comparators |
a list of comparison functions (see |
... |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.