AnimalSequences0.2.0 package

Analyse Animal Sequential Behaviour and Communication

association_metrics

Calculate Association Metrics for Sequences

average_seq_length

Calculate the Average Length of Sequences

calculate_conditional_entropy

Calculate Conditional Entropy of B given A in Bits

calculate_distance_matrix

Calculate Distance Matrix from Co-occurrence Matrix

calculate_transition_counts

Calculate Transition Counts from Sequences

calculate_transition_probs

Calculate Transition Probabilities from Sequences

cluster_elements

Cluster Elements Using Hierarchical Clustering

compare_distinct_elements_per_list_item

Compare True and Shuffled Distinct Elements per List Item

cooccurrence_matrix

Calculate Co-occurrence Matrix for Sequences

count_distinct_elements_per_list_item_shuffled

Count Distinct Elements per List Item in Shuffled Sequences

count_distinct_elements_per_list_item

Count Distinct Elements per List Item

count_distinct_elements

Count Distinct Elements in Sequences

element_covariate_network

Plot the network of elements and covariates based on the long format o...

element_covariate

Calculate Element-Covariate Conditional Probabilities

element_duration

Calculate Individual Element Durations

element_position

Calculate Median Position of Each Element in Sequences

find_most_similar_columns

Find Most Similar Columns in a Distance Matrix

generate_sequence

Generate a Sequence of Elements

long_to_sequences

Convert Long Format to Sequences

median_seq_length

Calculate the Median Length of Sequences

menzerath_plot

Create a Menzerath-Altmann Plot

min_max_seq_length

Calculate the Minimum and Maximum Length of Sequences

perform_clustering

Perform Various Clustering Methods

plot_seq_length_distribution

Plot the Distribution of Sequence Lengths

redundancy

Calculate Observed and Expected Redundancy of Sequences

sd_seq_length

Calculate the Standard Deviation of Sequence Lengths

sequence_duration_summary

Summarize Sequence Durations

sequence_length_summary_covariate

Summarize Sequence Lengths by Covariate

sequence_length_summary_element

Summarize Sequence Lengths by Element

sequence_length_summary

Summarize Sequence Lengths

sequences_to_long

Convert Sequences to Long Format

shuffle_sequences_across

Shuffle Elements Across All Sequences

shuffle_sequences_within

Shuffle Elements Within Each Sequence

temporal_overlap

Temporal Overlap

transition_chisq

Perform a Chi-Squared Test for Transition Counts

transition_entropy

Calculate Transition Entropy for Sequences

transition_predictions

Transition Predictions

transition_test

Perform a Statistical Test for Transition Probabilities

zipf_plot

Create a Zipf's Law Plot

All animal behaviour occurs sequentially. The package has a number of functions to format sequence data from different sources, to analyse sequential behaviour and communication in animals. It also has functions to plot the data and to calculate the entropy of sequences.

  • Maintainer: Alex Mielke
  • License: Apache License (>= 2.0)
  • Last published: 2024-09-23