{
  "_id": "6a1f1be5b401979e7341f64d",
  "Package": "CooccurrenceAffinity",
  "Type": "Package",
  "Title": "Affinity in Co-Occurrence Data",
  "Version": "2.0.0",
  "Date": "2026-01-27",
  "Authors@R": "c(\nperson(\"Kumar\", \"Mainali\", role = c(\"aut\", \"cre\"), email = \"kpmainali@gmail.com\"),\nperson(\"Eric\", \"Slud\", role = c(\"aut\"))\n)",
  "Description": "Computes a novel metric of affinity between two entities\nbased on their co-occurrence (using binary presence/absence\ndata). The metric and its maximum likelihood estimator (alpha\nhat) were advanced in Mainali, Slud, et al, 2021\n<doi:10.1126/sciadv.abj9204>. Four types of confidence\nintervals and median interval were developed in Mainali and\nSlud, 2022 <doi:10.1101/2022.11.01.514801>. The `finches`\ndataset is bundled with the package.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "URL": "https://github.com/kpmainali/CooccurrenceAffinity",
  "BugReports": "https://github.com/kpmainali/CooccurrenceAffinity/issues",
  "RoxygenNote": "7.3.1",
  "Repository": "https://kpmainali.r-universe.dev",
  "Date/Publication": "2026-01-28 23:51:40 UTC",
  "RemoteUrl": "https://github.com/kpmainali/cooccurrenceaffinity",
  "RemoteRef": "HEAD",
  "RemoteSha": "9bb0d218071ce4096039a3fc7d537f9210a27208",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-16 09:08:42 UTC",
    "User": "root"
  },
  "Author": "Kumar Mainali [aut, cre],\nEric Slud [aut]",
  "Maintainer": "Kumar Mainali <kpmainali@gmail.com>",
  "MD5sum": "0cabf0547cb03005ff8a8c7ff73893e4",
  "_user": "kpmainali",
  "_type": "src",
  "_file": "CooccurrenceAffinity_2.0.0.tar.gz",
  "_fileid": "c510d810f14da9c78934d4e65c9d8ad9958148fc2d134979b95a8d54978e5f77",
  "_filesize": 1125527,
  "_sha256": "c510d810f14da9c78934d4e65c9d8ad9958148fc2d134979b95a8d54978e5f77",
  "_created": "2026-05-16T09:08:42.000Z",
  "_published": "2026-06-02T18:07:33.196Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79139374948,
      "time": 104,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7032203548"
    },
    {
      "job": 79139375360,
      "time": 111,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7032204199"
    },
    {
      "job": 79139375537,
      "time": 136,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7032204661"
    },
    {
      "job": 79139374934,
      "time": 121,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7032203478"
    },
    {
      "job": 79139373968,
      "time": 165,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7032193487"
    },
    {
      "job": 79139374035,
      "time": 109,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7365989183"
    },
    {
      "job": 79139374891,
      "time": 83,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7032201290"
    },
    {
      "job": 79139375415,
      "time": 84,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7032201305"
    },
    {
      "job": 79139375211,
      "time": 81,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7032201180"
    }
  ],
  "_buildurl": "https://github.com/r-universe/kpmainali/actions/runs/25958047948",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/kpmainali/cooccurrenceaffinity",
  "_commit": {
    "id": "9bb0d218071ce4096039a3fc7d537f9210a27208",
    "author": "kpmainali <kpmainali@gmail.com>",
    "committer": "kpmainali <kpmainali@gmail.com>",
    "message": "Release 2.0.0 (CRAN-ready)\n",
    "time": 1769644300
  },
  "_maintainer": {
    "name": "Kumar Mainali",
    "email": "kpmainali@gmail.com",
    "login": "kpmainali",
    "uuid": 14167540
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1",
      "role": "Depends"
    },
    {
      "package": "BiasedUrn",
      "version": ">= 2.0.9",
      "role": "Depends"
    },
    {
      "package": "cowplot",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "plyr",
      "role": "Imports"
    },
    {
      "package": "reshape",
      "role": "Imports"
    }
  ],
  "_owner": "kpmainali",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-26",
      "n": 12
    },
    {
      "week": "2026-05",
      "n": 13
    }
  ],
  "_tags": [],
  "_stars": 29,
  "_contributors": [
    {
      "user": "kpmainali",
      "count": 179,
      "uuid": 14167540
    }
  ],
  "_userbio": {
    "uuid": 14167540,
    "type": "user",
    "name": "Kumar Mainali",
    "description": "I work mostly on ecological and earth science systems, and apply machine learning, AI, plus a suite of statistical models, and mathematical statistics."
  },
  "_downloads": {
    "count": 264,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/CooccurrenceAffinity"
  },
  "_devurl": "https://github.com/kpmainali/cooccurrenceaffinity",
  "_searchresults": 22,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/CooccurrenceAffinity.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/kpmainali/cooccurrenceaffinity",
  "_realowner": "kpmainali",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0",
      "date": "2023-05-03"
    },
    {
      "version": "1.0.2",
      "date": "2025-06-27"
    },
    {
      "version": "2.0.0",
      "date": "2026-02-16"
    }
  ],
  "_exports": [
    "AcceptAffCI",
    "AcceptAffin",
    "affinity",
    "affinity2by2",
    "AlphInts",
    "Bisect",
    "Covrg",
    "CovrgPlot",
    "dataprep",
    "EHypMidP",
    "EHypQuInt",
    "logLikExtHyp",
    "MaxX.Int",
    "midP.EHyp",
    "minmaxAlpha.pFNCH",
    "MinX.Int",
    "ML.Alpha",
    "plotgg"
  ],
  "_datasets": [
    {
      "name": "finches",
      "title": "Darwin’s finches presence–absence data",
      "object": "finches",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Seymour",
        "Baltra",
        "Isabella",
        "Fernandina",
        "Santiago",
        "Rabida",
        "Pinzon",
        "Santa.Cruz",
        "Santa.Fe",
        "San.Cristobal",
        "Espanola",
        "Floreana",
        "Genovesa",
        "Marchena",
        "Pinta",
        "Darwin",
        "Wolf"
      ],
      "rows": 13,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "AcceptAffCI",
      "title": "Acceptability Interval",
      "topics": [
        "AcceptAffCI"
      ]
    },
    {
      "page": "AcceptAffin",
      "title": "Calculates the \"Acceptability Function\" used in defining Blaker's (2000) Acceptability Interval and computing the latter in the function AcceptAffCI().",
      "topics": [
        "AcceptAffin"
      ]
    },
    {
      "page": "affinity",
      "title": "Computes alpha, probability, expected co-occurence, median interval, various confidence intervals, other indices of affinity, etc.",
      "topics": [
        "affinity"
      ]
    },
    {
      "page": "affinity2by2",
      "title": "Maximum likelihood estimate and intervals of alpha, null expectation, p-value and traditional indices from a 2x2 table",
      "topics": [
        "affinity2by2"
      ]
    },
    {
      "page": "AlphInts",
      "title": "Median interval, four confidence intervals, null expectation of cooccurrence count, and p-value",
      "topics": [
        "AlphInts"
      ]
    },
    {
      "page": "Bisect",
      "title": "Bisections for finding a root of a function",
      "topics": [
        "Bisect"
      ]
    },
    {
      "page": "Covrg",
      "title": "Coverage Probabilities for Confidence Intervals about alpha, for fixed true alpha",
      "topics": [
        "Covrg"
      ]
    },
    {
      "page": "dataprep",
      "title": "Occurrence matrix (e.g., species by site) data preparation for affinity() function",
      "topics": [
        "dataprep"
      ]
    },
    {
      "page": "EHypMidP",
      "title": "Quantile of the Extended Hypergeometric distribution approximated by the midP distribution function",
      "topics": [
        "EHypMidP"
      ]
    },
    {
      "page": "EHypQuInt",
      "title": "Interval of alpha values for which X is a specified q'th quantile",
      "topics": [
        "EHypQuInt"
      ]
    },
    {
      "page": "finches",
      "title": "Darwin’s finches presence–absence data",
      "topics": [
        "finches"
      ]
    },
    {
      "page": "logLikExtHyp",
      "title": "log of Extended Hypergeometric Likelihiood at (X, mA,mB,N, alpha)",
      "topics": [
        "logLikExtHyp"
      ]
    },
    {
      "page": "MaxX.Int",
      "title": "MaxX.Int computation",
      "topics": [
        "MaxX.Int"
      ]
    },
    {
      "page": "midP.EHyp",
      "title": "midP.EHyp computation",
      "topics": [
        "midP.EHyp"
      ]
    },
    {
      "page": "minmaxAlpha.pFNCH",
      "title": "integer-endpoint of range for which BiasedUrn::pFNCHHypergeo() works without error",
      "topics": [
        "minmaxAlpha.pFNCH"
      ]
    },
    {
      "page": "MinX.Int",
      "title": "MinX.Int computation",
      "topics": [
        "MinX.Int"
      ]
    },
    {
      "page": "ML.Alpha",
      "title": "Maximum likelihood estimate and intervals of alpha, null expectation and p-value of a 2x2 table",
      "topics": [
        "ML.Alpha"
      ]
    },
    {
      "page": "plotgg",
      "title": "Heatmap plot of affinity() output",
      "topics": [
        "plotgg"
      ]
    }
  ],
  "_readme": "https://github.com/kpmainali/cooccurrenceaffinity/raw/HEAD/README.md",
  "_rundeps": [
    "BiasedUrn",
    "cli",
    "cowplot",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "plyr",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "reshape",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_score": 4.804820678721162,
  "_indexed": true,
  "_nocasepkg": "cooccurrenceaffinity",
  "_universes": [
    "kpmainali"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.0.0",
      "date": "2026-05-16T09:10:20.000Z",
      "distro": "noble",
      "commit": "9bb0d218071ce4096039a3fc7d537f9210a27208",
      "fileid": "c164731deaae432ccc9d5163ef7ff505b7493fde9533b07b1495aa5ea63e89ef",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kpmainali/actions/runs/25958047948"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.0.0",
      "date": "2026-05-16T09:10:25.000Z",
      "distro": "noble",
      "commit": "9bb0d218071ce4096039a3fc7d537f9210a27208",
      "fileid": "0b893c2a86106d1300ecd53c93aac856a394608748581d36884fcd26a6040f3f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kpmainali/actions/runs/25958047948"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.0.0",
      "date": "2026-05-16T09:10:38.000Z",
      "commit": "9bb0d218071ce4096039a3fc7d537f9210a27208",
      "fileid": "513f9e6abe120791682f750b39f7abbbdf8770537da725d332769e20e0753112",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kpmainali/actions/runs/25958047948"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.0.0",
      "date": "2026-05-16T09:10:27.000Z",
      "commit": "9bb0d218071ce4096039a3fc7d537f9210a27208",
      "fileid": "d489619db4de4ec0290a276a4170ddc9594f9105058cf41a3ee40f3e2d0f1bbe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kpmainali/actions/runs/25958047948"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.0.0",
      "date": "2026-05-16T09:09:53.000Z",
      "commit": "9bb0d218071ce4096039a3fc7d537f9210a27208",
      "fileid": "dd426a30c3255992381e72afe656df8b36d5538032e79fa0fdd770461947824f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kpmainali/actions/runs/25958047948"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.0.0",
      "date": "2026-05-16T09:09:52.000Z",
      "commit": "9bb0d218071ce4096039a3fc7d537f9210a27208",
      "fileid": "4ce149879948dc07ceabcd0665e8b2a053b8af59a05e9fbfeed44dd9282c331f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kpmainali/actions/runs/25958047948"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.0.0",
      "date": "2026-05-16T09:09:50.000Z",
      "commit": "9bb0d218071ce4096039a3fc7d537f9210a27208",
      "fileid": "53ce69f9d163595de25d199ada6679aece647d7244c5e5e51ffbe7513d62793a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/kpmainali/actions/runs/25958047948"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.0.0",
      "date": "2026-06-02T18:07:12.000Z",
      "commit": "9bb0d218071ce4096039a3fc7d537f9210a27208",
      "fileid": "e7e5d4ee1193bda6d933720d5693ba01fe6dff62aefc124d15377394c05c2df6",
      "status": "success",
      "buildurl": "https://github.com/r-universe/kpmainali/actions/runs/25958047948"
    }
  ]
}