Computes the scaling constant \(c_J\) used in the A1 closed-form mapping. Three variants are supported based on asymptotic approximations.
Usage
compute_scaling_constant(
J,
scaling = c("log", "harmonic", "digamma"),
mu_K = NULL
)Details
The scaling constant appears in the Poisson proxy: $$K_J - 1 \mid \alpha \approx \text{Poisson}(\alpha \cdot c_J)$$
Available variants:
- log
\(c_J = \log(J)\), the asymptotic leading term (default)
- harmonic
\(c_J = H_{J-1} = \psi(J) + \gamma\), improves accuracy for small/moderate J
- digamma
\(c_J = \psi(\tilde{\alpha} + J) - \psi(\tilde{\alpha})\) where \(\tilde{\alpha} = (\mu_K - 1)/\log(J)\), a local correction
See also
DPprior_a1 for the main elicitation function