preference_index: Compute the preference index of a dataset

View source: R/preference.R

preference_indexR Documentation

Compute the preference index of a dataset

Description

The preference index is a measurement of how much an animal preferes to be exposed to one stimulus over another differnt stimulus or nothing. If stimuli are applied on extremes of the chamber, the position of the fly along the x axis of the chamber can be used as proxy for preference. The preference index is built upon the number of crosses of a so called "decision zone" situated in the center of the chamber Leaving the decision zone it in the direction of the stimulus are considered evidence of preference for it, whereas Leaving the decision zone on the opposite direction has the opposite effect. The preference index takes the difference between both and normalizes for the total number of crosses. A minimum number of crosses can be required for the whole dataset or for each exposure to the stimulus.

Usage

preference_index(appetitive, aversive, min_exits_required = 5)

Arguments

appetitive

Number of exits towards the CSplus simulus

aversive

Number of exits towards the CSminus stimulus

min_exits_required

An integer stating the minimal number of cross events required for the data to be considered significant


shaliulab/idocr documentation built on June 1, 2025, 4:59 p.m.