meltt.match {meltt} | R Documentation |
Performing iterative comparison and matching [Auxiliary Function]
Description
Auxiliary function that generates an R wrapper around the main python function used to process the numerical matrix generated in meltt
. Returns a summary of matched entries.
Usage
meltt.match(data, twindow, spatwindow, smartmatch, certainty, k,
secondary, partial, weight, episodal, silent)
Arguments
data |
numerical matrix passed from |
twindow |
specification of temporal window in unit days passed from |
spatwindow |
specification of a spatial window in kilometers passed from |
smartmatch |
implement matching using all available taxonomy levels. When FALSE, matching will occur only on a specified taxonomy level passed from |
certainty |
specification of the the exact taxonomy level to match on when |
k |
number of taxonomies passed from |
secondary |
vector of the number of taxonomy levels for each taxonomy passed from |
partial |
specifies whether matches along less than the full taxonomy dimensions are permitted. Passed from |
weight |
relative weight of each taxonomy in the calculation of the matching score. Passed from |
episodal |
boolean for wether normal or episodal matches are performed. Automatically determined and passed from |
silent |
Boolean specifying whether or not messages are displayed. Passed from |
Details
Main auxiliary wrapper function that passes the processed data matrix from meltt
to the python code used to manage the matching procedure.
Value
Returns a list object containing output of matching entries and a matrix of optimal selected matches.
Note
meltt.match
requires the Python package NumPy to run. The package automatically checks whether NumPy is installed at runtime and returns an error if it is not.
Author(s)
Karsten Donnay and Eric Dunford.
References
Karsten Donnay, Eric T. Dunford, Erin C. McGrath, David Backer, David E. Cunningham. (2018). "Integrating Conflict Event Data." Journal of Conflict Resolution.