Learn R Programming

ggdmc (version 0.2.5.2)

CheckDMI: Check Data Model Instance

Description

Return a model object extracted either from a data model instance or an object storing posterior samples. The function checks also

  1. When x stores DMI of one participant, if DMI is a data.frame,

  2. When x is an object of posterior samples, if x is a list of many subjects,

  3. whether model is successfully created,

  4. whether prior is suppled or we can extract it from 'samples'

Usage

CheckDMI(x = NULL, prior = NULL, theta1 = NULL, nchain = NULL)

Arguments

x

a data-model instance

prior

a parameter prior list

theta1

a user-supplied theta cube

nchain

number of MCMC chains