Skip to content

CooccurrenceAffinity

2.0.0

Affinity in Co-Occurrence Data

0packages depend
3.6Kdownloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Kumar MainaliFirst published 2023-05-033 releasesCRAN page ↗GitHub ↗

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

CRAN checks
13OK
Slowest check: 2.1 min · r-oldrel-macos-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
5
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 1,727 wordsVignettesNopkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
100%
Return-value docs
100%
References docs
63%

Downloads

3.6K
CRAN downloads in the past year
Rank #11,611 · ~10/day · ~302/mo
Daily download trend is not available in this view yet.
22630 days
84990 days
3.6K1 year
Compare downloads with other packages →
Also on128 r2u23 autocran

Repository

Repository
29Stars
1Forks
3Open issues
0Open PRs
0Releases
179Commits
1Contributors
179 commits · Last activity 2026-01-28 · -3.3% stars, 30d

Stars over time

2025-03-30 · 272026-08-10 · 29

Repository practices

Upstream repositoryBeta

Checks run against github.com/kpmainali/cooccurrenceaffinity on 2026-08-16.

No development-tooling practices detected in the upstream repository.

How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)
Depends (2)
R >= 4.1BiasedUrn
LinkingTo (0)
none
Suggests (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Datasets

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (2)
Author, Maintainer
Author
Package Timeline

3 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 2.0.0Latest
    2026-02-12 · current release · diff ↗
  • 1.0.2
    2025-06-27 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0
    2023-05-03
  • R
    R 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")
Mainali, K., & Slud, E. (2026). CooccurrenceAffinity: Affinity in Co-Occurrence Data (Version 2.0.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for CooccurrenceAffinity version 2.0.0 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy