Skip to contents

This function computes pairwise CCC for all graders present in the data-frame and plots it on a radar chart. It allows for partitions in the variable of interest to be made so that differences can be more clearly observed along the entire range of the variable. If two data-frames are input, this function will assume that the first data-frame belongs to the expert graders and will compute the mean of the expert graders' ratings, creating a representative expert grader to compare against each device.

Usage

pairwise_ccc(
  df,
  device_status = FALSE,
  df2 = NULL,
  variable,
  partitions = 1,
  table = FALSE
)

Arguments

df

Input data-frame in long format.

device_status

A boolean denoting if df is the device data-frame; default assumes grader data-frame. This parameter is arbitrary if your df2 is not null.

df2

Device data-frame in long format.

variable

A valid column name denoting the variable of interest.

partitions

An integer specifying how many groups to split the variable into.

table

A boolean denoting if the CCC values should be formatted in a table.

Value

A radar chart or table of pairwise CCC.

Examples

data("expert_graders", package = "meatrics")
pairwise_ccc(expert_graders, device_status = FALSE, variable = "ema", partitions = 5)


data("devices", package = "meatrics")
pairwise_ccc(expert_graders, device_status = FALSE, df2 = devices, variable = "msa_marbling", partitions = 5)