Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

compareAgreement

Compare agreement A with and without simulated coding error


Description

Calculate agreement in ordered rating scales, and compares this to agreement with simulated coding error.

Usage

compareAgreement(V, n=500, e=0.01, N=500, pos=FALSE)

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

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.

Value

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.

Author(s)

Didier Ruedin

See Also

Examples

# Sample data:
V <- c(1,1,1,1,2,3,3,3,3,4,4,4,4,4,4)
compareAgreement(V)

agrmt

Calculate Concentration and Dispersion in Ordered Rating Scales

v1.42.4
MIT + file LICENSE
Authors
Didier Ruedin [aut, cre] Clem Aeppli [ctb]
Initial release
2020-08-29

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.