Skip to contents

Users must categorize and inform the program of the column names within their dataset.

Class

colnames [List]

Slots

  1. subid [Character]

    The column name of subject identifier.

    Column name that is exactly "Subject" can be recognized automatically.

  2. block[Character]

    The column name of block index.

    Column name that is exactly "Block" can be recognized automatically.

  3. trial[Character]

    The column name of trial index.

    Column name that is exactly "Trial" can be recognized automatically.

  4. object [CharacterVector]

    The column names of objects presented in the task, with individual elements separated by underscores (“_”).

    Column names that are prefixed with "Object_" can be recognized automatically.

  5. reward [CharacterVector]

    The column names of the reward associated with each object; ensure that every object has its own corresponding reward.

    Column names that are prefixed with "Reward_" can be recognized automatically.

  6. action [Character]

    The column name of the action taken by the agent, which must match an object or one of its elements.

    Column name that is exactly "Action" can be recognized automatically.

  7. exinfo [CharacterVector]

    The column names of extra information that the model may use during the markov decision process.

Tips

Users can use these variables within the model’s functions. see tutorial.

Example

 # column names
 colnames = list(
   subid = "Subject",
   block = "Block",
   trial = "Trial",
   object = c("Object_1", "Object_2", "Object_3", "Object_4"),
   reward = c("Reward_1", "Reward_2", "Reward_3", "Reward_4"),
   action = "Action",
   exinfo = c("Frame", "NetWorth", "RT", "Mood")
 )