Skip to contents

A classical test on decision making. Read more details on wikipedia. This modified version uses pools to simulate cards, but the essential ideas are the same.

Usage

igt(data, .by = NULL, .input = NULL, .extra = NULL)

Arguments

data

Raw data of class data.frame.

.by

The column name(s) in data used to be grouped by. If set to NULL (default), all data will be treated as from one subject and there will be no grouping columns in the value returned.

.input, .extra

Each is a list() containing all the input variable names and special values for certain variables. See more in the details section.

Value

An object with the same class as data contains following values:

sum_outcome

The total outcome over all trials.

perc_good

The number of choices on "good" pools.