CooccurrenceAffinity: Affinity in Co-Occurrence Data

Computes a novel metric of affinity between two entities based on their co-occurrence (using binary presence/absence data). The metric and its maximum likelihood estimator (alpha hat) were advanced in Mainali, Slud, et al, 2021 <doi:10.1126/sciadv.abj9204>. Four types of confidence intervals and median interval were developed in Mainali and Slud, 2022 <doi:10.1101/2022.11.01.514801>. The `finches` dataset is bundled with the package.

Getting started

Package details

AuthorKumar Mainali [aut, cre], Eric Slud [aut]
MaintainerKumar Mainali <kpmainali@gmail.com>
LicenseMIT + file LICENSE
Version2.0.0
URL https://github.com/kpmainali/CooccurrenceAffinity
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("CooccurrenceAffinity")

Try the CooccurrenceAffinity package in your browser

Any scripts or data that you put into this service are public.

CooccurrenceAffinity documentation built on Feb. 12, 2026, 9:06 a.m.