CooccurrenceAffinity
2.0.0Affinity in Co-Occurrence Data
Overview
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.
Install
Health
- OK2026-08-0513 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-08-0112 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 63%
Downloads
Repository
Stars over time
Forks over time
Issues over time
Repository practices
Checks run against github.com/kpmainali/cooccurrenceaffinity on 2026-08-16.
No development-tooling practices detected in the upstream repository.
Dependencies
Nothing depends on this yet.
Code & Tests
Datasets
People & History
3 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 2.0.0Latest
- 1.0.22025-06-27 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.02023-05-03
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2023-05-03
- Total releases
- 3 / 3 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1
- Bundled data
- 0.5 KB / 1 file
- Download size
- 895 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("CooccurrenceAffinity")This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.