knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

metaSDT

R-CMD-check DOI R-CMD-check

This is an R implementation of Maniscalco and Lau's methods of calculating metacognitive SDT measures using maximum likelihood estimation and minimization of the sum of squared errors.

Installation

You can install metaSDT's development version from GitHub with:

# install.packages("devtools")
devtools::install_github("craddm/metaSDT")

For further details on metacognitive/Type 2 SDT, see their website at http://www.columbia.edu/~bsm2105/type2sdt/ and the following publications:

Maniscalco, B., & Lau, H. (2012). A signal detection theoretic approach for estimating metacognitive sensitivity from confidence ratings. Consciousness and Cognition, 21(1), 422ā€“430. doi:10.1016/j.concog.2011.09.021

Maniscalco, B., & Lau, H. (2014). Signal detection theory analysis of type 1 and type 2 data: meta-dā€™, response-specific meta-dā€™, and the unequal variance SDT mode. In S. M. Fleming & C. D. Frith (Eds.), The Cognitive Neuroscience of Metacognition (pp.25-66). Springer.

If you use these functions, cite the above papers and scripts on which it is based.

The fit_meta_d_SSE and fit_meta_d_MLE commands require data in the same format outlined on M & L's webpage, as follows:

Suppose there are two stimuli, A, and B, and three confidence ratings - high (3), medium(2), and low(1). The possible responses are

A3, A2, A1, B1, B2, B3.

Input to the function should be counts for each of these responses separately for each stimulus type.

So for example:

library(metaSDT)
nR_S1 <- c(100, 50, 30, 20, 10, 4)
nR_S2 <- c(4, 20, 21, 35, 60, 90)
fit_MLE <- fit_meta_d_MLE(nR_S1,
                          nR_S2)
fit_MLE
fit_SSE <- fit_meta_d_SSE(nR_S1,
                          nR_S2)
fit_SSE

Output is a data frame with m-ratio etc.



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