betweenSubjectMPT: Between-Subject Comparison of Parameters

View source: R/betweenSubjects.R

betweenSubjectMPTR Documentation

Between-Subject Comparison of Parameters

Description

Computes differencesor other statistics of MPT parameters for two hierarchical MPT models fitted separately to between-subjects data

Usage

betweenSubjectMPT(
  model1,
  model2,
  par1,
  par2 = par1,
  stat = c("x-y", "x<y"),
  plot = FALSE
)

Arguments

model1

fitted hierarchical MPT model for first between-subjects condition

model2

fitted hierarchical MPT model for second between-subjects condition

par1

label of parameter from first model for which statistic should be computed

par2

label of parameter from second model. Default: The same parameter as in the first model

stat

one or more functions of the parameters using "x" and "y" as placeholders for the parameters from the first and second model, respectively. Default: Compute (A) the difference between parameters and (B) a Bayesian p-value (by counting how often x<y).

plot

whether to plot the convergence of the difference in parameters

Value

a list of the class betweenMPT with the values:

  • summary: Summary for parameter difference

  • mptInfo1, mptInfo2: info about MPT models (eqn and data file etc.)

  • mcmc: the MCMC samples of the differences in parameters

Author(s)

Daniel Heck


TreeBUGS documentation built on May 31, 2023, 9:21 p.m.