meltt.episodal: Handling events and episodal data [Auxiliary Function]

View source: R/meltt.episodal.R

meltt.episodalR Documentation

Handling events and episodal data [Auxiliary Function]

Description

Auxiliary function that receives the compilation matrix and systematically subsets events and episodes to deal with differences in event duration. The function passes subsets to meltt.matchto be processed. Output includes a full list of matching events and/or episodes.

Usage

meltt.episodal(data, indexing, priormatches, twindow, spatwindow, smartmatch,
	       certainty, k, secondary, partial, averaging, weight, silent)

Arguments

data

object of class data.frame.

indexing

list of indices given the entry location of events and episodes in the original input data.

priormatches

prior matches (if any) passed as data.frame.

twindow

specification of temporal window in unit days.

spatwindow

specification of a spatial window in kilometers.

smartmatch

implement matching using all available taxonomy levels. When false, matching will occur only on a specified taxonomy level. Default = TRUE.

certainty

specification of the the exact taxonomy level to match on when smartmatch = F. Default = NULL.

k

number of taxonomies passed from meltt.

secondary

vector of the number of taxonomy levels for each taxonomy passed from meltt.

partial

specifies whether matches along less than the full taxonomy dimensions are permitted. Passed from meltt.

averaging

implement averaging of all values events are match on when matching across multiple dataframes. Default = FALSE.

weight

relative weight of each taxonomy in the calculation of the matching score. Passed from meltt.

silent

Boolean specifying whether or not messages are displayed. Passed from meltt.

Details

Internal function that helps manage integration of event and episodal data by easing the transition between the two logics. meltt algorithm tracks event-to-event matches, episode-to-episode, and event-to-episode matches. meltt.episodal streamlines the transfer between these matching states.

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.

See Also

meltt


css-konstanz/meltt documentation built on Nov. 5, 2022, 11:32 p.m.