Skip to contents

Train the SM2007 model

Usage

SM2007(
  v = NULL,
  o = NULL,
  parameters,
  experience,
  mapping,
  debug = FALSE,
  comparator_func = .witnauer_comparator_proc,
  ...
)

Arguments

v

(optional) A named matrix of dimensions S,S; where S is the number of stimuli.

o

(optional) A named matrix of dimensions S,S,S (the operator switches).

parameters

A list containing the model parameters, as returned by get_parameters().

experience

A data.frame specifying trials as rows, as returned by make_experiment

mapping

A named list specifying trial and stimulus mapping, as returned by make_experiment

debug

A logical specifying whether to print information for the comparison process. Defaults to FALSE.

comparator_func

A function to be used in the comparison process. Either .witnauer_comparator_funcor .comparator_func.

...

Additional named arguments

Value

A list with raw results

Note

Correct usage of the v and o parameters requires the matrices to adhere to a specific format. For v, entry i,j represents the association from stimulus i to stimulus j. For o, entry i,k,j represents the operator switch between stimulus i and comparator k with respect to stimulus j.