rating_sdt: Type 1 SDT for rating data

View source: R/sdt_functions.R

rating_sdtR Documentation

Type 1 SDT for rating data

Description

Provides a Type-1 SDT analysis of data from a rating experiment in which observers discriminate between two response alternatives and provide ratings of confidence in their judgements.

Usage

rating_sdt(nr_s1, nr_s2, add_constant = FALSE)

Arguments

nr_s1

Responses to S1 stimulus. See below for advice.

nr_s2

Responses to S2 stimulus. See below for advice.

add_constant

Adds a small constant to every cell to account for boundaries - i.e. log-linear correction. Default = TRUE.

Details

The expected input is two vectors, one for responses to each stimulus, encoding the observers response and confidence. For example, for two stimuli labelled A and B, with three confidence ratings, participants could respond to stimulus A as follows:

Response: A, rating: 3, count: 60

Response: A, rating: 2, count: 30

Response: A, rating: 1, count: 10

Response: B, rating: 1, count: 7

Response: B, rating: 2, count: 4

Response: B, rating: 3, count: 1

The appropriate vector would be nr_s1 <- c(60,30,10,7,4,1)

For stimulus B, we would have the respective vector for responses to stimulus B, eg:

Response: A, rating: 3, count: 4

Response: A, rating: 2, count: 6

Response: A, rating: 1, count: 11

Response: B, rating: 1, count: 13

Response: B, rating: 2, count: 23

Response: B, rating: 3, count: 61

nr_s2 <- c(4,6,11,13,23,61)

The helper function sdt_counts can be used to get the data into the right format.

The output is a data frame with various Type-1 measures, one for each criterion.

Author(s)

Matt Craddock matt@mattcraddock.com

Examples

nr_s1 <- c(60,30,10,7,4,1)
nr_s2 <- c(4,6,11,13,23,61)
rating_sdt(nr_s1, nr_s2)

craddm/metaSDT documentation built on Feb. 10, 2024, 6:57 a.m.