BuildModel {ggdmc}R Documentation

Create a model object

Description

A model object consists of arraies with model attributes.

Usage

BuildModel(p.map, responses, factors = list(A = "1"), match.map = NULL,
  constants = numeric(0), type = "norm", posdrift = TRUE,
  verbose = TRUE)

## S3 method for class 'model'
print(x, p.vector = NULL, ...)

## S3 method for class 'dmi'
print(x, ...)

Arguments

p.map

parameter map. This option maps a particular factorial design to model parameters

responses

specifying the response names and levels

factors

specifying a list of factors and their levels

match.map

match map. This option matches stimuli and responses

constants

specifying the parameters with fixed values

type

specifying model type, either "rd" or "norm".

posdrift

a Boolean, switching between enforcing strict postive drift rates by using truncated normal distribution. This option is only useful in "norm" model type.

verbose

Print p.vector, constants and model type

x

a model object

p.vector

parameter vector

...

other arguments

Examples

model <- BuildModel(
        p.map     = list(a = "1", v = "1", z = "1", d = "1", t0 = "1",
                     sv = "1", sz = "1", st0 = "1"),
        constants = c(st0 = 0, d = 0, sz = 0, sv = 0),
        match.map = list(M = list(s1 = "r1", s2 = "r2")),
        factors   = list(S = c("s1", "s2")),
        responses = c("r1", "r2"),
        type      = "rd")

[Package ggdmc version 0.2.6.0 Index]