employ | R Documentation |
Employ a clustering to new data
employ(
object,
new_data,
only = NULL,
additional_data = NULL,
assignment_method = "nearest_cluster",
parallel = FALSE,
...
)
object |
A |
new_data |
A data frame in which to look for variables with |
only |
< |
additional_data |
A data frame with additional data that may be
(left-)joined onto the |
assignment_method |
A character naming the employment method. The
default assignment method The assignment method |
parallel |
A logical or an integer. If If |
... |
Additional arguments affecting the employment procedure. |
employ
returns a medic object.
part1 <- complications[1:100,]
part2 <- complications[101:149,]
clust <- medic(part1, id = id, atc = atc, k = 3)
# Nearest cluster matching
employ(clust, part2)
# Only exact matching
employ(clust, part2, assignment_method = "exact_only")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.