Skip to content

Commit 72ce752

Browse files
committed
docs(count-regression): use estimator macros and fix em-dash spacing
Addresses the three findings carried unaddressed across review rounds: - `\hat{\vec{\beta}}` at two sites hand-expanded a macro that already exists. Now `\evb`, the `\e...` estimator-indirection form CLAUDE.md prefers for new content. Verified identical output: both expand to `\hat{\tilde{\beta}}` in the render. - The em dash before a soft line break rendered closed-left/open-right once Pandoc collapsed the newline to a space. Moving the dashes to the start of the continuation line restores symmetric spacing, confirmed in the rendered HTML: "overdispersion -- without ... estimates -- is". Swept the same class across the PR's own new content, which turned up a third instance the findings did not name: `\hat{\theta}` -> `\eth`, and `\hat{\P}` -> `\est{\P}` in prose this PR rewrote. Four further raw `\hat` sites in `_sec_poisson_dx.qmd` are pre-existing on main and only reflowed here, so converting one of them would have been an inconsistent partial sweep of untouched content. Filed as #1144 instead. Local gate: `quarto render chapters/count-regression.qmd --to html` succeeded with zero KaTeX errors; `lintr::lint()` clean on both files; spellcheck reports only pre-existing terms, none introduced here. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
1 parent 0a2d5cd commit 72ce752

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

_subfiles/count-regression/_sec-overdispersion.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ substantially larger than the mean
1818
A random variable $Y$ is **overdispersed**
1919
relative to a parametric model $\P(Y=y \mid \vX)$ if
2020
its conditional empirical variance in a dataset exceeds
21-
the theoretical variance imposed by the fitted model $\hat{\P}(Y=y \mid \vX)$.
21+
the theoretical variance imposed by the fitted model $\est{\P}(Y=y \mid \vX)$.
2222

2323
::::
2424

2525
In Poisson regression, unmodeled heterogeneity, clustering,
2626
or omitted predictors cause overdispersion.
2727
When overdispersion is present but ignored,
28-
the point estimates $\hat{\vec{\beta}}$ remain unbiased,
28+
the point estimates $\evb$ remain unbiased,
2929
but the standard errors produced by standard maximum likelihood estimation
3030
are severely underestimated.
3131
This underestimation leads to overly narrow confidence intervals

chapters/count-regression.qmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,18 +103,18 @@ and variance expansion in count data.
103103

104104
## Quasipoisson regression
105105

106-
Another flexible approach to address overdispersion
107-
without changing the underlying Poisson point estimates—
106+
Another flexible approach to address overdispersion
107+
without changing the underlying Poisson point estimates
108108
is quasi-likelihood estimation via the quasipoisson model family.
109109
Rather than specifying a complete likelihood function
110110
and fitting by maximum likelihood,
111111
quasipoisson models specify only the mean-variance relationship
112112
$\Var{Y \mid \vX} = \theta \mu(\vx, t)$,
113113
where $\theta$ is a dispersion parameter estimated from Pearson residuals.
114114

115-
While point estimates for regression coefficients $\hat{\vec{\beta}}$
115+
While point estimates for regression coefficients $\evb$
116116
remain identical to standard Poisson regression,
117-
their estimated standard errors are scaled by $\sqrt{\hat{\theta}}$.
117+
their estimated standard errors are scaled by $\sqrt{\eth}$.
118118
This method-of-moments approach provides robust standard error estimates
119119
and valid $p$-values when overdispersion is multiplicative,
120120
though it does not specify a full parametric distribution

0 commit comments

Comments
 (0)