{
  "_id": "6af1e3071c36d7c6403e46d1",
  "Package": "poissonexact",
  "Title": "Exact Conditional Inference for Poisson Regression",
  "Version": "0.1.0",
  "Authors@R": "c(\nperson(\"Ali\", \"Charkhi\", , \"ali.x.charkhi@gsk.com\", role = c(\"aut\", \"cre\")),\nperson(\"Dragoș\", \"Moldovan-Grünfeld\", , \"dragos.v.moldovan-grunfeld@gsk.com\", role = \"ctb\"),\nperson(\"GlaxoSmithKline Research & Development Limited\", role = c(\"cph\", \"fnd\"))\n)",
  "Description": "Compute exact conditional maximum likelihood estimates,\nexact p-values, and exact confidence intervals for categorical\neffects in Poisson regression models with an optional offset\nand stratification. Nuisance parameters (stratum intercepts and\nother model effects not under test) are eliminated by\nconditioning on their sufficient statistics rather than relying\non asymptotic approximations, which matters when case counts\nare small or sparse and standard Wald/likelihood-ratio\ninference is unreliable. Three algorithms are provided for\ndifferent problem shapes: a fast closed-form method for a\nsingle two-level effect with strata as the only nuisance\nstructure, following Guess, Lydick, Small and Miller (1987)\n<doi:10.1093/oxfordjournals.aje.a114535> and Guess and Thomas\n(1990) <doi:10.1097/00001648-199001000-00016>; a multivariate\nshift algorithm for arbitrary categorical covariates and\nstrata, generalizing Hirji, Mehta and Patel (1987)\n<doi:10.2307/2289388> to bounded Poisson counts; and a network\nalgorithm offering more aggressive mid-computation pruning for\nlarger problems, generalizing Mehta, Patel and Senchaudhuri\n(1992) <doi:10.1080/10618600.1992.10474574> to bounded Poisson\ncounts.",
  "License": "Apache License (>= 2)",
  "URL": "https://github.com/GSK-Biostatistics/poissonexact,\nhttps://gsk-biostatistics.github.io/poissonexact/",
  "BugReports": "https://github.com/GSK-Biostatistics/poissonexact/issues",
  "VignetteBuilder": "knitr",
  "Config/roxygen2/markdown": "TRUE",
  "Config/roxygen2/version": "8.1.1",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Language": "en-GB",
  "Repository": "https://dragosmg.r-universe.dev",
  "Date/Publication": "2026-11-09 14:45:18 UTC",
  "RemoteUrl": "https://github.com/GSK-Biostatistics/poissonexact",
  "RemoteRef": "HEAD",
  "RemoteSha": "8154c779d677f0f016ec0a4851454c12de0b195f",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-09 15:07:04 UTC",
    "User": "root"
  },
  "Author": "Ali Charkhi [aut, cre],\nDragoș Moldovan-Grünfeld [ctb],\nGlaxoSmithKline Research & Development Limited [cph, fnd]",
  "Maintainer": "Ali Charkhi <ali.x.charkhi@gsk.com>",
  "_user": "dragosmg",
  "_type": "src",
  "_file": "poissonexact_0.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/653706fd2b72fbf10ea6869eea0eda40e7c535422ff71039ea04f0c654b5aafc",
  "_filesize": 463839,
  "_sha256": "653706fd2b72fbf10ea6869eea0eda40e7c535422ff71039ea04f0c654b5aafc",
  "_expires": "2027-02-17T15:13:09.000Z",
  "_created": "2026-11-09T15:07:04.000Z",
  "_published": "2026-11-09T15:13:11.345Z",
  "_upstream": "https://github.com/GSK-Biostatistics/poissonexact",
  "_status": "success",
  "_maintainer": {
    "name": "Ali Charkhi",
    "email": "ali.x.charkhi@gsk.com"
  },
  "_jobs": [
    {
      "job": 129243233785,
      "time": 214,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13686515841"
    },
    {
      "job": 129243233666,
      "time": 207,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13685502159"
    },
    {
      "job": 129243233895,
      "time": 324,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13686511107"
    },
    {
      "job": 129243233845,
      "time": 247,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13685462362"
    },
    {
      "job": 129240959826,
      "time": 227,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13684564464"
    },
    {
      "job": 129243233682,
      "time": 82,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13685761694"
    },
    {
      "job": 129243233684,
      "time": 184,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13686391277"
    },
    {
      "job": 129243233696,
      "time": 191,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13685507037"
    },
    {
      "job": 129243233712,
      "time": 164,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13685931236"
    }
  ],
  "_buildurl": "https://github.com/r-universe/dragosmg/actions/runs/42640720293",
  "_commit": {
    "id": "8154c779d677f0f016ec0a4851454c12de0b195f",
    "author": "Dragoș Moldovan-Grünfeld <dragos.mold@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Increment version number to 0.1.0 (#5)",
    "time": 1794235518
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "gsk-biostatistics",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-46",
      "n": 6
    }
  ],
  "_tags": [],
  "_stars": 0,
  "_contributors": [
    {
      "user": "dragosmg",
      "count": 26,
      "uuid": 13176361
    },
    {
      "user": "alicharkhi",
      "count": 1,
      "uuid": 32510881
    }
  ],
  "_userbio": {
    "uuid": 13176361,
    "type": "user",
    "name": "Dragoș Moldovan-Grünfeld",
    "followers": 15,
    "description": "R developer"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/poissonexact"
  },
  "_devurl": "https://github.com/gsk-biostatistics/poissonexact",
  "_pkgdown": "https://gsk-biostatistics.github.io/poissonexact/",
  "_searchresults": 0,
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/poissonexact.html",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_cranurl": false,
  "_exports": [
    "ep_closed_form",
    "ep_multi_shift",
    "ep_network",
    "recompute_exact_inference"
  ],
  "_help": [
    {
      "page": "ep_closed_form",
      "title": "Exact conditional Poisson regression (fast, closed-form algorithm)",
      "topics": [
        "ep_closed_form"
      ]
    },
    {
      "page": "ep_multi_shift",
      "title": "Exact conditional Poisson regression (multivariate-shift algorithm)",
      "topics": [
        "ep_multi_shift"
      ]
    },
    {
      "page": "ep_network",
      "title": "Exact conditional Poisson regression (network algorithm)",
      "topics": [
        "ep_network"
      ]
    },
    {
      "page": "recompute_exact_inference",
      "title": "Recompute a p-value and/or confidence interval from an already-fitted exact distribution",
      "topics": [
        "recompute_exact_inference"
      ]
    }
  ],
  "_readme": "https://github.com/GSK-Biostatistics/poissonexact/raw/HEAD/README.md",
  "_rundeps": [
    "rlang"
  ],
  "_vignettes": [
    {
      "source": "Example.Rmd",
      "filename": "Example.html",
      "title": "A Low-Incidence Vaccine Efficacy Example",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Why this vignette exists",
        "The scenario",
        "Simulating the trial",
        "Recommended: aggregate repeated covariate patterns before fitting",
        "Analysing it the exact way",
        "Analysing the same model with glm()",
        "Side by side",
        "Cross-checking with the general algorithms",
        "Reusing an already-computed exact distribution",
        "A different null hypothesis: is efficacy above 50%, not just above 0%?",
        "A different confidence level: 90% instead of 95%",
        "A Monte Carlo check: does the nominal coverage actually hold?",
        "A more general model: adjusting for a covariate on top of stratification",
        "References"
      ],
      "created": "2026-11-09 10:43:53",
      "modified": "2026-11-09 10:43:53",
      "commits": 1
    },
    {
      "source": "Theory-Implementation.Rmd",
      "filename": "Theory-Implementation.html",
      "title": "Exact Conditional Poisson Regression: Theory and Implementation",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Motivation: why exact conditional inference",
        "2. The model and notation shared by every algorithm",
        "2.1 Indices and strata",
        "2.2 Response, offset, exposure",
        "2.3 Design: the interest column and the nuisance columns",
        "2.4 The stratified Poisson log-linear model",
        "2.5 Notation at a glance, and one deliberate disambiguation",
        "3. The general principle: exponential families and eliminating nuisance parameters by conditioning",
        "3.1 The model as a canonical exponential family",
        "3.2 The conditioning theorem",
        "3.3 Finite conditional reference sets",
        "3.4 Coefficient tables and the conditional law of $T$",
        "4. Adjustment vs. stratification: when they agree, and when they don't",
        "4.1 The narrow case where the two are the same model",
        "4.2 The two conditioning events are the same event",
        "4.3 The general principle: crossing variables into a stratification means adjusting for their full joint interaction (precisely defined)",
        "4.4 Worked contrast: why fit23 and fit232 disagree",
        "4.5 Other conditions the equivalence needs",
        "4.6 Why the package still treats stratification and adjustment as different mechanisms",
        "4.7 Choosing between stratification and adjustment in practice: a clinical-trials perspective",
        "5. The multivariate-shift algorithm (ep_multi_shift())",
        "5.1 The Poisson base measure, explicitly",
        "5.2 SAS-style cap rules for $S_i$",
        "5.3 Stratum-level decomposition and the within-stratum dynamic program",
        "5.4 Combining strata (convolution)",
        "5.5 Pruning for feasibility (Rule A and Rule B)",
        "5.6 Filtering and marginalizing to $C(t)$",
        "5.7 Algorithmic summary: the exact steps performed",
        "6. The closed-form algorithm (ep_closed_form())",
        "6.1 The special case",
        "6.2 Deriving the within-stratum conditional distribution (Poisson thinning)",
        "6.3 The coefficient table as a polynomial in $\\theta$",
        "6.3.1 The Guess-Thomas (1990) recursive algorithm, and why it is fast",
        "6.4 Correspondence with the general coefficient table",
        "6.5 Exact inference specifics: the truncated-table trick",
        "6.6 Why the search over $\\beta$ is done the way it is",
        "6.7 Algorithmic summary: the exact steps performed",
        "7. The network algorithm (ep_network())",
        "7.1 Where this algorithm sits, and why it exists",
        "7.2 The network representation of a stratum's reference set",
        "7.3 Backward induction: longest and shortest paths",
        "7.3.1 Intuition, in plain terms: what \"remaining nuisance length\" actually means",
        "7.4 The closed form used by this package, and why it is exact",
        "7.5 Forward processing with continuous pruning",
        "7.6 Combining strata",
        "7.7 Correctness: why the extra pruning never discards a valid state",
        "8. The shared exact-inference machinery",
        "8.1 Log-scale arithmetic and log-sum-exp",
        "8.2 The conditional maximum likelihood estimate (CMLE)",
        "8.3 Root-finding scaffold",
        "8.4 P-values and confidence intervals",
        "9. Numerical implementation notes",
        "10. Comparing the three algorithms, and choosing among them",
        "10.1 Why the closed-form algorithm is faster, precisely, in the case it covers",
        "10.2 A worked example where the algorithms genuinely disagree",
        "10.3 Multivariate-shift versus network, precisely",
        "10.4 Practical guidance",
        "11. References"
      ],
      "created": "2026-11-09 10:43:53",
      "modified": "2026-11-09 14:03:09",
      "commits": 2
    }
  ],
  "_score": 3,
  "_indexed": false,
  "_nocasepkg": "poissonexact",
  "_universes": [
    "dragosmg"
  ],
  "_previous": "0.0.0.9000",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-11-09T15:09:15.000Z",
      "distro": "resolute",
      "commit": "8154c779d677f0f016ec0a4851454c12de0b195f",
      "fileid": "https://r2.ropensci.org/8258e07d810bc78e7230a9b29d91634b5e03d6df7a6219acce004fa90c2e9afb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/42640720293"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-11-09T15:08:47.000Z",
      "distro": "resolute",
      "commit": "8154c779d677f0f016ec0a4851454c12de0b195f",
      "fileid": "https://r2.ropensci.org/03239b1eeeecfdda47773bf7b87dc84c7cbb4d17507c6b4e5cf48d0d775c1c9f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/42640720293"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-11-09T15:09:15.000Z",
      "commit": "8154c779d677f0f016ec0a4851454c12de0b195f",
      "fileid": "https://r2.ropensci.org/b3f131fa8a02af917d6a98593d7e87014dff62914542c7edd8a71aafdcacd1de",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/42640720293"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-11-09T15:08:55.000Z",
      "commit": "8154c779d677f0f016ec0a4851454c12de0b195f",
      "fileid": "https://r2.ropensci.org/49c5a60ee856eecab9433008bf474664f7aa8eea2a21c89a6fd0019f2912b971",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/42640720293"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-11-09T15:08:46.000Z",
      "commit": "8154c779d677f0f016ec0a4851454c12de0b195f",
      "fileid": "https://r2.ropensci.org/686ac6e7723e731c40690ecb338a1c8e3a5838bd5b03c7d118bc504275db32d1",
      "status": "success",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/42640720293"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-11-09T15:08:13.000Z",
      "commit": "8154c779d677f0f016ec0a4851454c12de0b195f",
      "fileid": "https://r2.ropensci.org/89b94ecd12d8ba4dedc69e2c137392e704b81208a46967d9b070be0b958761bd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/42640720293"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-11-09T15:08:26.000Z",
      "commit": "8154c779d677f0f016ec0a4851454c12de0b195f",
      "fileid": "https://r2.ropensci.org/63d587cc1d3a37f87ea460b98efa4eea164a78a5be2c9b922129809a2e9d8f76",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/42640720293"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-11-09T15:08:23.000Z",
      "commit": "8154c779d677f0f016ec0a4851454c12de0b195f",
      "fileid": "https://r2.ropensci.org/389d334cde204336da60fd6f9fe95735a96f3213c3b3738eb173b59e0d1811fa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dragosmg/actions/runs/42640720293"
    }
  ]
}