Skip to content

Cite literature justifying the multinomial functions - #146

Open
joethorley wants to merge 3 commits into
add-multinomfrom
multinom-references
Open

Cite literature justifying the multinomial functions#146
joethorley wants to merge 3 commits into
add-multinomfrom
multinom-references

Conversation

@joethorley

Copy link
Copy Markdown
Member

Adds @references to the four multinomial roxygen blocks (docs only, no
code changes) and regenerates the Rd files.

  • log_lik_multinom(): Baker 1994; McCullagh and Nelder 1989; Forster 2010 -
    the multinomial-as-independent-Poissons identity the row-wise log-likelihood
    implements, and its validity under Bayesian inference.
  • dev_multinom(): McCullagh and Nelder 1989; Baker 1994; Agresti 2013 -
    deviance as scaled log-likelihood-ratio, and the summed-Poisson-deviance
    equals multinomial G-squared result.
  • res_multinom(): Haberman 1973; Pierce and Schafer 1986; Gelman, Meng and
    Stern 1996 - the (1 - prob) factor in the standardized residual, the
    deviance residual as default type, and posterior predictive replication.
  • ran_multinom(): Johnson, Kotz and Balakrishnan 1997; Gelman, Meng and
    Stern 1996 - the multinomial covariance structure the joint per-trial draw
    preserves.

tools::checkRd() is clean on all four Rd files.

Refs #62. Targets add-multinom (#145).

🤖 Generated with Claude Code

joethorley and others added 3 commits August 25, 2026 10:30
Add @references to the four multinomial roxygen blocks: the
multinomial-Poisson identity underlying the log-likelihood and deviance
(Baker 1994; McCullagh and Nelder 1989; Forster 2010; Agresti 2013), the
standardized and deviance residual definitions (Haberman 1973; Pierce
and Schafer 1986), and the joint per-trial replicate used for posterior
predictive residuals (Gelman, Meng and Stern 1996; Johnson, Kotz and
Balakrishnan 1997).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Only the sum over a `group` is exact, so document that LOO/WAIC should
treat the trial rather than the row as the leave-one-out unit, and cite
Vehtari, Gelman and Gabry 2017.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@joethorley
joethorley force-pushed the multinom-references branch from f1cb37e to de1c77a Compare August 25, 2026 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants