Learn R Programming

SSRTcalc (version 2.1.1)

ssrt_stan_inhibition_fn: Posterior inhibition function

Description

Computes P(inhibit | SSD) across a range of SSD values using posterior parameter samples, with a 90

Usage

ssrt_stan_inhibition_fn(
  fit,
  ssd_range = seq(0, 600, by = 10),
  n_draws = 400,
  plot = TRUE
)

Value

Invisibly, a data.frame with columns: ssd, mean, lo90, hi90.

Arguments

fit

An ssrt_stan object (single-subject only).

ssd_range

SSD values to evaluate in ms. Default seq(0, 600, 10).

n_draws

Posterior draws to use. Default 400.

plot

Produce the plot? Default TRUE.