Session Ready
Exercise

Measuring expert agreement

Before collecting responses about a survey, we want to assess that subject matter experts (SMEs) agree on the strength of items. The sme data frame consists of ordinal ratings of the strength of all possible survey items for a survey we are building to measure consumer opinions about brand loyalty. Let's analyze the level of agreement between two raters using basic statistics. The irr package has been loaded.

Recall the cor() function from the prerequisite courses. It is useful in finding correlations of different variables in a data frame. It will output a matrix of values with the data frame as its input.

Instructions
100 XP
  • Print the first six rows of the sme data frame.
  • Produce a correlation matrix of the sme ratings.
  • Get the percentage agreement between raters using the agree() function from irr.