[R] R-help Digest, Vol 282, Issue 3

Ravi Varadhan r@v|@v@r@dh@n @end|ng |rom jhu@edu
Fri Aug 21 15:18:23 CEST 2026


To my knowledge, there is no built‑in function in R that exactly replicates Stata’s expoisson. The main issue is that it can be computationally heavy since it conditions on the sum of total counts (conditional MLE).  It can only be practical in small samples. We should be able to get similar estimates using Firth's bias correction, for example, although I myself have not tested this claim.   The brglm2 package implements Firth's bias reduction for GLMs.
Ravi
________________________________
From: R-help <r-help-bounces using r-project.org> on behalf of r-help-request using r-project.org <r-help-request using r-project.org>
Sent: Friday, August 21, 2026 06:00
To: r-help using r-project.org <r-help using r-project.org>
Subject: R-help Digest, Vol 282, Issue 3


      External Email - Use Caution



Send R-help mailing list submissions to
        r-help using r-project.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://stat.ethz.ch/mailman/listinfo/r-help<https://stat.ethz.ch/mailman/listinfo/r-help>
or, via email, send a message with subject or body 'help' to
        r-help-request using r-project.org

You can reach the person managing the list at
        r-help-owner using r-project.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of R-help digest..."


Today's Topics:

   1. How to compute an exact Poisson model with R? (iagogv)

----------------------------------------------------------------------

Message: 1
Date: Fri, 21 Aug 2026 10:21:14 +0200
From: iagogv <iagogv using disroot.org>
To: R Help <r-help using r-project.org>
Subject: [R] How to compute an exact Poisson model with R?
Message-ID: <15fca7e36128374222c8307bebf36c1e using disroot.org>
Content-Type: text/plain; charset="utf-8"

Hi all,

Can an exact Poisson regression be computed with R, instead of using the
standard (glm) Poisson using maximum likelihood?

I am working with a collegue in a project, and I'd like to reproduce his
method, if not his results. He uses Stata, particularly the expoisson
function (https://www.stata.com/help.cgi?expoisson<https://www.stata.com/help.cgi?expoisson>) in order to compute
the exact Poisson regression, relevant for small samples.

expoisson fits an exact Poisson regression model, which produces more
accurate inference in small samples than standard
maximum-likelihood-based Poisson regression

I know about exact Poisson tests
(https://stat.ethz.ch/R-manual/R-devel/RHOME/library/stats/html/poisson.test.html<https://stat.ethz.ch/R-manual/R-devel/RHOME/library/stats/html/poisson.test.html>),
but it does not allow to include offset.

So, is there some way to reproduce exact Poisson regression with R?

Thanks!

Best,

--
Iago
        [[alternative HTML version deleted]]




------------------------------

Subject: Digest Footer

_______________________________________________
R-help using r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help<https://stat.ethz.ch/mailman/listinfo/r-help>
PLEASE do read the posting guide https://www.r-project.org/posting-guide.html<https://www.r-project.org/posting-guide.html>
and provide commented, minimal, self-contained, reproducible code.


------------------------------

End of R-help Digest, Vol 282, Issue 3
**************************************

	[[alternative HTML version deleted]]



More information about the R-help mailing list