YEAB1.0.6 package

Analyze Data from Analysis of Behavior Experiments

ab_range_normalization

Normalization (or rescaling) between arbitrary a and b

balci2019

Peak individual trial analysis using moving average

berm

Biexponential Refractory Model (BERM)

biexponential

Biexponential Model

bp_opt

Find the best fit for individual trials using optim

ceiling_multiple

Find the nearest multiple

curv_index_fry

Curvature index using Fry derivation

curv_index_int

Curvature index by numerical integration

entropy_kde2d

Shannon entropy in two dimensions

eq_hyp

Hyperbolic function

event_extractor

Event extractor

exhaustive_lhl

Individual trial analysis for peak procedure data

exhaustive_sbp

Single breakpoint algorithm, the exhaustive version as the one used in...

exp_fit

Exponential fit with nls

f_table

Frequency table for binned data

fleshler_hoffman

Fleshler & Hoffman (1962) progression

fwhm

Full Width at Half Maximum

gaussian_fit

Gaussian + ramp fit with LM algorithm

gell_like

Gellerman-like series

get_bins

A function to binarize a numeric vector with a given resolution

hyperbolic_fit

Hyperbolic fit with nls

ind_trials_obj_fun

Objective function for finding the best fit for individual trials

ind_trials_opt

Find the best fit for individual trials using optim

KL_div

Computes the Kullback-Leibler divergence based on kernel density estim...

mut_info_discrete

Mutual information of continuous variables using discretization

mut_info_knn

Mutual Information for Continuous Variables using kNN

n_between_intervals

Find maximum value within intervals

objective_bp

Objective function for the breakpoint optimization algorithm

optimize_biexponential

Optimization Function for the Biexponential Model

read_med

Process MED to csv based on standard data structure event.time

sample_from_density

Sample from a density estimate

trapezoid_auc

Area under the curve (AUC)

unit_normalization

Min-max normalization (also feature rescaling)

val_in_interval

True value in interval

YEAB-package

YEAB: Analyze Data from Analysis of Behavior Experiments

Analyze data from behavioral experiments conducted using 'MED-PC' software developed by Med Associates Inc. Includes functions to fit exponential and hyperbolic models for delay discounting tasks, exponential mixtures for inter-response times, and Gaussian plus ramp models for peak procedure data, among others. For more details, refer to Alcala et al. (2023) <doi:10.31234/osf.io/8aq2j>.

  • Maintainer: Emmanuel Alcala
  • License: GPL (>= 3)
  • Last published: 2025-01-31