Skip to contents

Several tests are based on subject's spatial acuity, so typically a distance error is collected and scores are calculated based on that error. locmem() deal with the distance condition only. locmem2() deals with a special case when the response order and distance both matter.

Usage

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

locmem2(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:

nc_loc

Count of correct responses for location.

mean_dist_err

Mean of the response distance errors.

mean_log_err

Mean of the log-transformed (of base \(e\)) response distance errors.

nc_order

Count of correct responses for order. For locmem2() only.