compute_preference_index: Compute the preference index displayed by the animals in a...

View source: R/preference.R

compute_preference_indexR Documentation

Compute the preference index displayed by the animals in a dataset

Description

Compute the preference index displayed by the animals in a dataset

Usage

compute_preference_index(annotated_data, min_exits_required = 5)

Arguments

annotated_data

data.frame where every row captures the position of one animal at ome timepoint when the animal exists the decision zone and a sign (type) is associated with the exit (appetitive or aversive). Must contain fields t, side, type, region_id

min_exits_required

Minimum number of exists required when computing the preference index. Animals not reaching this number of exits are not considered in the analysis


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