compute_preference_index | R Documentation |
Compute the preference index displayed by the animals in a dataset
compute_preference_index(annotated_data, min_exits_required = 5)
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.