View source: R/score_problink.R
score_problink | R Documentation |
Score comparison patterns of pairs using the probabilistic linkage framework
score_problink(pairs, model = NULL, var = "weight", add = TRUE, ...)
pairs |
a |
model |
an object of type |
var |
the name of the new variable that will be created (also see details). |
add |
add the estimated score to the |
... |
passed on to |
When add = TRUE
, the pairs object is returned with the scores added
to it. The new column will have the name var
unless additional
arguments are passed on to predict.problink_em
using the
...
argument that causes the calculation of multiple scores (such
are type = "all"
). In that case the text given by var
is
prepended to the names of the variables returned by
predict.problink_em
(with a separator '_
').
When add = FALSE
the scores are returned as is.
data("linkexample1", "linkexample2") pairs <- pair_blocking(linkexample1, linkexample2, "postcode") pairs <- compare_pairs(pairs, c("lastname", "firstname", "address", "sex")) pairs <- score_problink(pairs) # is the same as model <- problink_em(pairs) pairs <- score_problink(pairs, model = model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.