The function returns a list with agreement A without simulated coding errors, the mean of agreement with simulated coding error, and the standard deviation of agreement with simulated coding error.
Arguments
V
A vector with an entry for each individual
n
Number of samples in the simulation of coding errors
e
Proportion of samples for which errors are simulated
N
Number of replications for calculating mean and standard deviation
pos
Vector of possible positions. If FALSE, the values occurring in V are set as the possible values
Author
Didier Ruedin
Details
This function calculates agreement on a vector, and compares the value with agreement with simulated coding error. It runs the function agreementError N times. The other arguments (n, e, pos) are passed down to the agreementError function.