get_data_for_comparison: Matches elements from two document allocations (presumably...

View source: R/report_scoring_utility.R

get_data_for_comparisonR Documentation

Matches elements from two document allocations (presumably different codings of the same document). Returns a list of matched event reports, tags and attributes.

Description

The similarity is measured using the Levenshtein distance between all of their fields of the serialized record. For every pair of events (and consequently, for any tags and attributes associated with these events), we use the get_sorted function to find the best match.

Usage

get_data_for_comparison(model_user_doc_id, user_user_doc_id)

Arguments

model_user_doc_id

the user_doc_id of the first set of codings to compare

user_user_doc_id

the user_doc_id of the second set of codings to compare

Value

A list of length 3 containing 1. dataframe of matched event report ids 2. dataframe of matched tag ids 3. dataframe of matched attributes.


gidonc/durhamevp documentation built on April 8, 2022, 10:31 a.m.