PCC.contam {stemmatology} | R Documentation |
PCC Exploratory Methods: Contamination Detection
Description
Detect possible contaminations by assessing the role of each witness in conflicting information between variant locations.
Usage
PCC.contam(x, omissionsAsReadings = FALSE, alternateReadings = FALSE, pauseAtPlot = FALSE)
Arguments
x |
if |
omissionsAsReadings |
logical; if |
alternateReadings |
logical; if |
pauseAtPlot |
logical; if |
Details
To help assess the role of each witness in the conflicting information between variant locations, this function computes the number of conflicting variant locations when removing one of the witnesses, for each witness. If removing a witness makes the number of conflicting variant locations significantly drop, then contamination can be considered as plausible. Be aware that this function will be most efficient for contaminations limited to a single manuscript.
Value
An object of class "pccContam", a list containing
totalByMs |
a numeric matrix, with, in rows, each variant locations, and, in columns, the number of conflicts and centrality in the full database, followed by the difference in total conflicts and centrality caused by the removal of each witness. |
conflictsDifferences |
a one row numeric matrix, containing, for each witness, the total decrease in conflicts caused by its removal from the computations |
database |
the original database used for the calculations |
Warning
The execution of this command can be time-consuming for large databases.
Note
Additional contamination detection methods will be implemented in the future.
Author(s)
Jean-Baptiste Camps & Florian Cafiero
References
Camps, Jean-Baptiste. ‘Detecting Contaminations in Textual Traditions Computer Assisted and Traditional Methods’. Leeds, International Medieval Congress, 2013, unpublished paper, https://www.academia.edu/3825633/Detecting_Contaminations_in_Textual_Traditions_Computer_Assisted_and_Traditional_Methods.
See Also
PCC.Exploratory
, PCC.equipollent
.
Examples
# load a data set
data("fournival")
# identify conflicts on a subset
x = PCC.conflicts(fournival)
# identify problematic variant locations
x = PCC.overconflicting(x, ask = FALSE, threshold = 0.06)
# eliminate them
x = PCC.elimination(x)
# examinate the rest of the problematic cases, to detect
# plausible contaminations
PCC.contam(x)