Skip to contents

All vignettes

Complete API Reference with Examples

A comprehensive reference for all DPprior package functions, organized by category with detailed signatures, parameters, return values, and usage examples.

The Applied Researcher's Guide to Cluster-Count Elicitation

A comprehensive guide for applied researchers on eliciting Gamma hyperpriors for the Dirichlet Process concentration parameter α based on prior beliefs about the number of clusters.

Case Studies: Multisite Trials and Meta-Analysis

Real-world applications of DPprior in educational multisite trials, medical meta-analysis, and large-scale policy evaluation.

Diagnosing Your Prior: Avoiding Unintended Consequences

Learn to verify that your elicited Gamma hyperprior behaves as intended across all relevant dimensions, not just the number of clusters.

Beyond Cluster Counts: Dual-Anchor Elicitation for Weight Control

Learn to control both expected cluster count AND weight concentration using the dual-anchor framework for Dirichlet Process prior elicitation.

DPprior: Why Prior Elicitation Matters

An introduction to the DPprior package for principled elicitation of Gamma hyperpriors on the Dirichlet Process concentration parameter α, with emphasis on its utility in low-information settings such as multisite trials and meta-analyses.

Quick Start: Your First Prior in 5 Minutes

Learn how to elicit your first Gamma hyperprior for α in a Dirichlet Process model in just 5 minutes using the DPprior package.

From Poisson Proxy to NegBin: The A1 Approximation Theory

A rigorous treatment of the Poisson approximation for large J, scaling constant selection, the Negative Binomial gamma mixture, and the closed-form A1 inverse mapping for Gamma hyperprior elicitation.

Exact Moment Matching: The A2 Newton Algorithm

A rigorous treatment of the Newton-Raphson algorithm for exact moment matching, including score-based Jacobian derivation, convergence analysis, numerical safeguards, and comparison with the A1 closed-form approximation.

Mathematical Foundations: The K Distribution and Gamma Hyperpriors

A comprehensive treatment of the mathematical foundations underlying the DPprior package, including the exact distribution of the number of clusters K_J, moment calculations, and the theory behind Gamma hyperprior elicitation.

Technical Deep Dive: Stirling Numbers and the Antoniak Distribution

A comprehensive treatment of unsigned Stirling numbers of the first kind, numerically stable log-space computation, and their application to the Antoniak distribution for exact computation of P(K_J = k | α).

Weight Distributions: w₁, ρ, and the Dual-Anchor Framework

A comprehensive treatment of stick-breaking weight distributions under Gamma hyperpriors, the I_c functional for closed-form moments, and the mathematical foundations of dual-anchor elicitation.