| sdt_metad_dist | R Documentation |
Density and random generation for the meta-d' model
(Maniscalco & Lau, 2012). Confidence thresholds are placed using the
metacognitive sensitivity metad, then rescaled so the total "old"/"new"
response rates match what type-1 d predicts. These are the simulation
counterparts of the metad version of sdt_rating(). The old/new
boundary is the middle threshold, so the number of rating categories must
be even (an odd number of thresholds).
dsdt_metad(
counts,
stimulus,
d,
thresholds,
metad,
sdratio = 1,
dist = c("normal", "gumbel_min", "gumbel_max", "logistic"),
log = FALSE
)
rsdt_metad(
n,
n_trials,
stimulus,
d,
thresholds,
metad,
sdratio = 1,
dist = c("normal", "gumbel_min", "gumbel_max", "logistic")
)
counts |
Integer matrix with one row per observation and one column per rating category, ordered from "definitely noise" (1) to "definitely signal" (K), or a vector for a single observation. |
stimulus |
Integer vector (0/1). Stimulus type: 0 = noise, 1 = signal. |
d |
Numeric vector. Sensitivity: |
thresholds |
Numeric vector of length K-1 with the ordered decision
thresholds, or an n-by-(K-1) matrix with one row per observation. The
thresholds are positions on the noise-standardized axis, measured from
the mean of the noise distribution (the signal mean sits at
|
metad |
Numeric vector. Metacognitive sensitivity (type-2 sensitivity),
on the same scale as |
sdratio |
Numeric vector. Ratio of signal to noise standard deviations
(default 1, i.e., equal variance). Must be positive. Note that this is the
natural scale: the |
dist |
Character. Noise distribution: "normal" (default), "logistic", "gumbel_min", or "gumbel_max". |
log |
Logical. If |
n |
Integer. Number of observations to generate. |
n_trials |
Integer vector. Number of trials per observation. |
dsdt_metad returns the (log-)density (multinomial probability).
rsdt_metad returns an integer matrix with one row per observation and
one rating-count column per category (r1 ... rK).
Maniscalco, B., & Lau, H. (2012). A signal detection theoretic approach for estimating metacognitive sensitivity from confidence ratings. Consciousness and Cognition, 21(1), 422–430. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.concog.2011.09.021")}
# Density for a single observation (K=4) with imperfect metacognition
dsdt_metad(counts = c(5, 15, 25, 55), stimulus = 1,
d = 1.5, thresholds = c(0.25, 0.75, 1.25), metad = 1.0)
# Generate meta-d' rating data (K=4) for 10 subjects and both stimulus types
dat <- expand.grid(id = 1:10, stimulus = c(0L, 1L))
dat <- cbind(dat, rsdt_metad(nrow(dat), 100, dat$stimulus, d = 1.5,
thresholds = c(0.25, 0.75, 1.25), metad = 1.0))
head(dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.