plot_sdt_fit: Creates ROC or response distribution model fit plots with...

Description Usage Arguments Value

View source: R/plot_sdt_fit.R

Description

Creates ROC or response distribution model fit plots with posterior predictive intervals.

Usage

1
2
3
4
5
6
7
8
9
plot_sdt_fit(
  fit,
  adata,
  variables = NULL,
  type = "roc",
  alpha = 0.05,
  bw = TRUE,
  verbose = T
)

Arguments

fit

a stanfit object.

adata

an aggregated data object produced by the aggregate_responses function. It must be the same aggregated data object that was used to produce the stanfit object.

variables

an optional vector of names of variables. These variables, if specified, define the subsets of data that will be represented by separate plots.

type

a type of plot required. If type = 'roc' then ROC curve plots are created, if type != 'roc' then response distribution plots are created.

alpha

an alpha level for the posterior predictive intervals, e.g., if alpha = .05 then 100% - alpha = 95% posterior predictive intervals will be calculated.

bw

if TRUE (the default), a black-and-white publication-friendly version of the response distribution plot will be created.

Value

a plot object.


boryspaulewicz/bhsdtr documentation built on March 8, 2020, 8:24 a.m.