Skip to contents

This function is a more flexible version of the AMILSC tables as it allows for two specific graders to be selected and compared. Additionally, it allows for the unit thresholds to be varied and partitions in the data to be made to observe changes across the entire range of the trait of interest.

Usage

threshold_diff(
  df,
  variable,
  grader_a,
  grader_b,
  units,
  visuals = "table",
  partitions = 1
)

Arguments

df

Input dataframe in long format

variable

A valid column name denoting the variable of interest

grader_a

First grader.

grader_b

Second grader.

units

An integer specifying how many units for the first threshold etc.

visuals

Will output either a stacked bar chart or a table. Can be either "table" or "bar", default is "table".

partitions

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

Value

A GT() table or ggplot2 stacked bar chart, categorizing differences into 4 categories.

Details

Note: there are still bugs in this function. It does not work for synthetic datasets, only for the original expert grader dataset.