plot_post_pars: Plot posterior estimates

View source: R/fcts.R

plot_post_parsR Documentation

Plot posterior estimates

Description

Function to plot the posterior mean and credible intervals of the parameters of interest from a lddmm fit object.

Usage

plot_post_pars(data, fit, par = c("drift", "boundary"))

Arguments

data

dataframe with the following columns:

  • subject: vector of size n containing the participant labels

  • block: vector of size n containing the training blocks (longitudinal units)

  • s: vector of size n containing the stimuli

  • d: vector of size n containing the decisions

  • r_time: vector of size n containing the response times

  • cens: vector of size n containing the censoring indicators (1 censored, 0 non censored)

fit

fit from the lddmm function

par

parameter to output ('drift', or 'boundary')

Value

Posterior mean and 95% CI


lddmm documentation built on June 7, 2023, 5:28 p.m.