Skip to main content
Journal of Applied Statistics logoLink to Journal of Applied Statistics
. 2025 Aug 25;53(6):1056–1074. doi: 10.1080/02664763.2025.2545890

On the robustness of truncated negative binomial regression model: application to field epidemiology

Jiwoong Yu a, Chanhee Kim b, Jaeseong Oh c,*, An-Shun Tai d, Woojoo Lee a,e,CONTACT
PMCID: PMC13134751  PMID: 42077997

Abstract

Truncated count data are often obtained from field investigations conducted for individuals with some health-related symptoms to discover the possible causes of food-borne outbreaks quickly and accurately. This study shows two robust properties of the truncated negative binomial (TNB) model. First, by characterizing the whole set of models leading to the same likelihood function as the TNB model, we find a practical meaning that the TNB model gives reliable inference for the regression coefficients even zero inflation is allowed, but a careful interpretation of the regression coefficients is needed. Second, the TNB model can be derived from the Poisson distribution with the random intercept following a gamma distribution, however, it is difficult to justify the distribution assumption for the random intercept. We find that the TNB model presents robust inference for the slope parameters against a misspecified random effect distribution. With some analytic justifications, our numerical study shows that the empirical coverage based on the TNB model is close to its nominal level, even when the random effect distribution is misspecified. The TNB model is applied to analyze truncated count data from the food-borne outbreak that occurred in South Korea.

Keywords: Truncated count data, truncated negative binomial, truncated likelihood, robustness, misspecified random effect distribution

2020 Mathematics Subject Classifications: 92B15, 62P10

1. Introduction

In August 2021, a food poisoning incident occurred in Gyeonggi-do, South Korea. Epidemiological investigators were dispatched urgently to investigate the situation. To expedite the investigation, the investigators first examined people with symptoms related to the exposure in question. The outcome variable is the number of diarrhea cases, and data are obtained from individuals with at least one case of diarrhea. This is a truncated random sample due to the investigation characteristic of field epidemiology. Therefore, instead of the standard count data analysis, an analysis of truncated count data should be performed. In addition to the above-mentioned application in field epidemiology, truncated count data have appeared in various contexts such as capture-recapture studies [1] and medical studies on the number of cholera cases [6].

The truncated negative binomial (TNB) model is one of the most popular parametric models for truncated count data analysis [10]. The truncated Poisson (TPO) model is a special case of the TNB model, such that the latter is more flexible than the former at the cost of estimating an additional dispersion parameter. It is important to recognize how the relationship between Poisson and negative binomial (NB) distributions relies on the presence of truncation. At first, suppose that there is no truncation, and the true data-generating model is an NB regression model. It is well known that the use of Poisson regression guarantees the consistency of regression coefficients in the mean parameter as long as the mean model is correctly specified. However, in the presence of truncation, this property no longer holds because the functional form of the mean from the TNB model differs from that from the TPO model [10], which implies that the robustness of the Poisson regression to distributional assumption can be vulnerable to how the samples are obtained.

In addition, several streams of the literature [4,9,10] involving modeling with truncated count data often start with parametric distributions defined on the whole non-negative integers. For example, the TNB and TPO distributions are obtained from the NB and Poisson distributions, respectively. However, starting with a parametric distribution defined on both truncated and observed parts leaves researchers with a serious concern in modeling the truncated count data because it is difficult to justify the truncated and unobserved part. For example, in the food poisoning incident in Gyeonggi-do, the number of purchasers of food related to the incident is approximately 8000, but the number of subjects that are epidemiologically investigated is 339. This motivating example shows that there may be many people who have had the food but have not contracted food poisoning, which corresponds to the existence of zero inflation in the truncated part. A natural question entails whether the analysis of truncated count data using the TNB model provides reliable results, even when the truncated part is not generated from the NB distribution. We investigate the robustness of the TNB model, and we fully characterize the class of distributions that lead to the TNB that can be identified using observed data. In addition, we show that a careful interpretation of the regression coefficients of the TNB model is required because the interpretation can depend on the assumption of the truncated part.

The Poisson distribution assumes that the variance is equal to the mean, which is often considered an inflexible part when analyzing overdispersed count data. The NB distribution is derived from the Poisson regression model with the random intercept following a gamma distribution. Therefore, as a more flexible method for handling overdispersion, the NB distribution has been widely used in various areas [10]. However, the use of a specific random effect distribution in deriving the NB distribution leaves researchers with a serious concern because the random effect distribution can be different from the gamma distribution in practice. Because it is difficult to know which random effect distribution is correct in advance, a natural question entails whether the analysis of truncated count data using the TNB model provides reliable results, even when the distribution of the random intercept differs from the gamma distribution. Previous studies, such as Neuhaus et al. [14,15] and McCulloch and Neuhaus [12], investigated the impact of misspecified random effect distributions in generalized linear mixed models. Their key findings were that the estimates of slope parameters associated with the covariates, which do not involve random slope, have no or little bias, while the intercept parameter can be biased. However, it remains unclear whether these findings generalize to the type of non-standard data structure involving outcome truncation. Therefore, we check how a misspecified distribution for the random intercept affects the biases and empirical coverage results of confidence intervals of the TNB estimates. Herein, we show some analytic results for the robustness of the TNB model against a misspecified random effect distribution. For other non-tractable cases, we perform a numerical study to check its robustness to various misspecified situations.

The remainder of this paper is organized as follows: Section 2 introduces parametric models for truncated count data. The first part of Section 3 explains robustness against the model assumption for the truncated part by characterizing the class of probability mass functions leading to the same truncated distribution. In addition, we explain why it is necessary to be cautious when interpreting the regression coefficients in the mean model. The second part of Section 3 explains the robustness against the misspecified random effect distribution. Some analytic results are obtained. Section 4 includes a numerical study designed to confirm the findings in Section 3. Section 5 analyzes the actual truncated count data from the food-borne outbreak, while Section 6 provides the conclusion.

2. Parametric models for truncated count data

Suppose that Y is an outcome variable of a non-negative integer type and X is a p-dimensional vector of covariates, and (Yi,Xi) i=1,…,n are independently and identically distributed. Let f(y∣x,θ) be a probability mass function for Y = y given X=x parametrized by θ. F denotes a family of parametric models for count data F={f(y∣x,θ)∣θ∈Θ,y∈{0,1,2…,}} where Θ is the whole parametric space. The k-truncated density function from f(y∣x,θ), which corresponds to the distribution of Y conditioned on Y≥k+1, is represented as

f(k)(y∣x,θ)=f(y∣x,θ)/{1−∑j=0kf(j∣x,θ)},

and the corresponding log-likelihood function for the whole data is

ℓ(k)(θ)=∑i=1n[log⁡f(yi∣xi,θ)−log⁡{1−∑j=0kf(j∣xi,θ)}].

The superscript (k) of f(y∣x,θ) and ℓ(θ) denotes truncation of the data up to k. For estimating θ, note that ℓ(k)(θ) relies on f(j∣x,θ) for j=0,1,…,k, and no data belonging to this truncated part is available.

Two widely-used parametric models for truncated count data are TPO and TNB [7,8]. Here, we use the canonical link function for the conditional mean as log⁡E(Y∣X)=log⁡μ=XTβ where T denotes the transpose. Using the probability mass function of TPO, the corresponding log-likelihood function for the whole data is

ℓPO(k)(β)=∑i=1n[yilog⁡μi−μi−log⁡{1−∑j=0k(μijexp⁡(−μi)/j!)}]. (1)

The probability mass function of the TNB model is

fNB(k)(y∣x,β,ϕ)=Γ(1ϕ+y)y!Γ(1ϕ)(ϕμ)y(1+ϕμ)y+1/ϕ/{1−∑j=0kΓ(1ϕ+j)j!Γ(1ϕ)(ϕμ)j(1+ϕμ)j+1/ϕ}

and the corresponding log-likelihood function is

ℓNB(k)(β,ϕ)=∑i=1n[log⁡Γ(1ϕ+j)Γ(1ϕ)+log⁡(ϕμi)yi(1+ϕμi)yi+1/ϕ−log⁡{1−∑j=0kΓ(1ϕ+j)j!Γ(1ϕ)(ϕμi)j(1+ϕμi)j+1/ϕ}], (2)

where ϕ is the dispersion parameter. It is well known that (2) converges to (1) as ϕ goes to zero. Therefore, the TPO model is a special case of the TNB model so that the latter is more robust to the overdispersion of count data. In addition, unlike the relationship between the Poisson and NB models when there is no truncation, the maximum likelihood estimators of β from (1) are generally inconsistent for β in (2) [4,7]. Considering these points, in the following discussion, the TNB model is our basic model for analyzing truncated count data.

3. Robust properties of truncated negative binomial model

We investigate two robustness properties of the TNB model. The first property is about the robustness against the truncated part, which is the unobserved part. The second property is about the robustness against the distribution assumption of the random intercept in the Poisson distribution.

3.1. Robustness against the model assumption for truncated part

To figure out the first property, we characterize the set of probability mass functions leading to the common truncated distribution (2). Once this characterization is provided, we can understand robustness against the model assumption for the truncated part.

Suppose that fNB(k)(y∣x,β,ϕ) is known or consistently estimated from the truncated data. Define

ΩfNB(k)={h∣ the probability vector is equal to (h(0∣x),…,h(k∣x),…)satisfying h(k)(y∣x)=fNB(k)(y∣x,β,ϕ)I(y>k)},

where I(⋅) is an indicator function that has a value of 1 when the condition in parentheses is true, and 0 otherwise. The set ΩfNB(k) is the whole collection of probability mass functions h leading to fNB(k)(y∣x,β,ϕ) as its probability mass function for the truncated data up to k. Define

H={h∣the probability vector is equal to (h(0∣x),…,h(k∣x),…)where h(y∣x)=α(x)fNB(k)(y∣x,β,ϕ) for y>k},

where ∑y=0kh(y∣x)=1−α(x)<1 and h(y∣x)≥0 for y=0,…,k. This representation says that H consists of the probability mass function h where the observed part (y>k) is proportional to fNB(k)(y∣x,β,ϕ), and the remaining probability from the observed part is arbitrarily distributed on the truncated part ( 0,1,…,k). The following show the equivalent relationship between these two representations.

Proposition 3.1

ΩfNB(k)=H and it is convex.

For the proof, first we show H⊂ΩfNB(k). Let h(y∣x) be any probability mass function in H and consider its k-truncated probability mass function h(k)(y∣x), then

h(k)(y∣x)=h(y∣x)1−∑j=0kh(j∣x)=α(x)fNB(k)(y∣x,β,ϕ)1−(1−α(x))=fNB(k)(y∣x,β,ϕ),

which shows that every element of H becomes an element of ΩfNB(k).

To show H⊃ΩfNB(k), let h(y∣x) be any element of ΩfNB(k), then

h(k)(y∣x)=h(y∣x)1−∑j=0kh(j∣x)=fNB(k)(y∣x,β,ϕ),andh(y∣x)=(1−∑j=0kh(j∣x))fNB(k)(y∣x,β,ϕ)=α(x)fNB(k)(y∣x,β,ϕ)

Thus, h(y∣x)∈H.

The remainder of the proof is to show that H is convex, which requires that w1h1+w2h2 belongs to H for any h1,h2∈H where w1≥0 and w2≥0 and w1+w2=1.

Suppose that h1(y∣x) and h2(y∣x) belong to H. Then,

h(y∣x)=w1h1(y∣x)+w2h2(y∣x)=(w1α1(x)+w2α2(x))fNB(k)(y∣x,β,ϕ),

where hi(y∣x)=αi(x)fNB(k)(y∣x,β,ϕ) for i=1or2. And

∑j=0kh(j∣x)=1−∑j=k+1∞h(j∣x)=1−(w1α1(x)+w2α2(x))∑y≥k+1∞fNB(k)(y∣x,β,ϕ)=1−(w1α1(x)+w2α2(x))<1.

Thus, h(y∣x) satisfies all conditions to be an element of the set H so that H is a convex set.

This result shows that any probability mass function leading to fNB(k)(y∣x,β,ϕ)I(y>k) for the truncated data can be represented as an element in H, and the representation in H is useful to examine some geometric property of ΩfNB(k). Examining the proof, this result can be extended beyond the TNB model.

It is interesting to investigate some specific elements in H. First, suppose that we consider a mixture of Y and Yk, Y∗=ZY+(1−Z)Yk, where Y follows the NB distribution, Yk is drawn from the probability mass function g(y∣x) which has an integer support ranging from 0 to k, and Z∣X=x follows the Bernoulli distribution with probability ω(x). The probability mass function of Y∗ has the form of,

hY∗(y∗∣x)=ω(x)fNB(y∣x,β,ϕ)+(1−ω(x))g(y∣x),

which is included in the set H as the truncated density function of hY∗(y∗∣x) has the form of α(x)fNB(k)(y∣x,β,ϕ) because

ω(x)fNB(y∣x,β,ϕ)1−∑j=0k{ω(x)fNB(j∣x,β,ϕ)+(1−ω(x))g(j∣x)}=fNB(k)(y∣x,β,ϕ),

and ∑j=0kg(j∣x)=1. This case corresponds to the zero-inflated negative binomial(ZINB) model [4] when k=0, which leads to the following conditional mean function

E(Y∣x)=ω(x)μ+(1−ω(x))∑y=0k{y⋅g(y∣x)}. (3)

Another example in H is

(1−ω(x))g(y∣x)+ω(x)fNB(k)(y∣x,β,ϕ), (4)

which belongs to the hurdle model [5,13]. Note that the support of g(y∣x) and that of fNB(k)(y∣x,β,ϕ) are separated, and the conditional mean is

E(Y∣x)=ω(x)(μ−∑y=0kyfNB(y∣x,β,ϕ))1−∑j=0kfNB(j∣x,β,ϕ)+(1−ω(x))∑y=0k{y⋅g(y∣x)}. (5)

The above-stated observations imply that the maximum likelihood estimates of the TNB model are consistent under various mixture models leading to the same TNB likelihood function. We note that this property requires a care in interpreting the regression coefficient β in the TNB model because the interpretation depends on the model for the truncated part, as shown in (3) and (5). To explain this more specifically, first, suppose that the data generating model is fNB(y∣x,β,ϕ), which lies in H. Then, the parameter β can be interpreted in a standard way because β=∂∂xlog⁡E(Y∣x). Second, suppose that the data-generating model is the ZINB model. Note that (3) implies β≠∂∂xlog⁡E(Y∣x). For interpreting β in the ZINB model, it is useful to consider two underlying groups, namely, the structural group producing the zero inflation and responsive group that includes random zeroes, and β is interpreted as the differentiation of the log of the responsive group mean with respect to x. For example, Sheu et al. [19] analyzed the effect of cigarette price to the number of smoking per day by treating the nonsmokers as structural zeros and the smokers as the responsive group. Third, suppose that the data generating model is the hurdle model, which also implies β≠∂∂xlog⁡E(Y∣x). The hurdle model assumes a two-stage sampling mechanism, where the first stage determines whether each unit crosses the hurdle, and the second stage observes the counts for the units that cross the hurdle. For this model, β lies in the mean model for the group that crosses the hurdle, but its interpretation is not straightforward because of the complex functional form of (5).

Because the correctly specified full model cannot be identified using truncated data only, interpreting the regression parameter should be based on untestable assumptions for the truncated part. Therefore, researchers should keep in mind that their interpretation partially relies on their domain knowledge about the truncated part. Even without considering truncation, Rose et al. [18] points out that the choice between the ZINB and hurdle models requires an understanding of study design and research purpose, as the two models are nearly indistinguishable in practice.

3.2. Robustness against misspecified random effect distribution

Suppose that given the random intercept ν with mean 1 and variance σν2, Y follows the Poisson distribution with mean μv. The random intercept ν is often considered for reflecting individual heterogeneity or omitted covariates [8,11]. The marginal probability mass function of Y can be written as

fG(y∣x,β,ϕ)=∫ν(μν)yexp⁡(−μν)y! dGϕ(ν), (6)

where μ=exp⁡(xTβ), ϕ is a dispersion parameter, and Gϕ is the distribution of ν. When ν follows a gamma distribution, fG(y∣x,β,ϕ) becomes an NB distribution. In practice, researchers are uncertain about whether ν follows a gamma distribution. This raises concerns that the truncated distribution from fG(y∣x,β,ϕ) is not the same as the TNB model. Due to the challenge of determining whether the random effect distribution is gamma based on observed data, it becomes necessary to explore whether the TNB model experiences biases and low empirical coverage of confidence intervals for the slope parameters in β when the distribution for the random intercept is misspecified. First, we analytically check whether the robustness of the TNB model holds against a misspecified random effect distribution by extending Neuhaus et al. [14,15]'s approach.

Let βT=(βT0,βTs)T where βT0 and βTs are the intercept and the slope parameters in the true model fG, respectively, and ϕT denotes the true dispersion parameter in fG. Considering that the TNB is a working model, the maximum likelihood estimator β∗ˆ=(β0∗ˆ,βs∗ˆ)T converges to the value (β0∗,βs∗)T corresponding to the minimizer of the Kullback-Leibler divergence D(b0,bs) between the true truncated model and TNB [16],

D(b0,bs)=EX∣Y>kEY∣X,Y>k[∑i=1nlog⁡{fG(k)(Yi∣Xi,β,ϕ)/fNB(k)(Yi∣Xi,b,ϕ∗)}], (7)

where b0 and bs correspond to the regression coefficients associated with the intercept and covariates, respectively, and both expectations are taken under the true probability mass function on (6).

We assume that E(X∣Y>k)=0 and that ν is independent of X. To satisfy the first assumption, we can center all observed covariates X. Our analytical result is derived when βTs=0. Differentiation of (7) with respect to b0 and bs is

∂D(b0,bs)∂b0=EX∣Y>kEY∣X,Y>k[∑i=1n{r(Yi∣Xi,b,ϕ∗)+∑j=0kfNB(j∣Xi,b,ϕ∗)r(j∣Xi,b,ϕ∗)1−∑j=0kfNB(j∣Xi,b,ϕ∗)}] (8)

and

∂D(b0,bs)∂bs=EX∣Y>kEY∣X,Y>k[∑i=1n{r(Yi∣Xi,b,ϕ∗)+∑j=0kfNB(j∣Xi,b,ϕ∗)r(j∣Xi,b,ϕ∗)1−∑j=0kfNB(j∣Xi,b,ϕ∗)}Xi], (9)

where r(Yi∣Xi,b,ϕ∗)={Yi−exp⁡(XiTb)}/{1+ϕ∗exp⁡(XiTb)}.

To investigate the property of the solution for b, consider the expectation with respect to Y∣X,Y>k in (9). Then,

EY∣X,Y>k[r(Y∣X,b,ϕ∗)]=(μT−∑j=0kj⋅fG(j∣X,βT,ϕ)1−∑j=0kfG(j∣X,βT,ϕ)−exp⁡(XiTb))/(1+ϕ∗exp⁡(XiTb)), (10)

where μT=exp⁡(βT0). Using this, Equation (9) becomes

EX∣Y>k[∑i=1n{(μT−∑j=0kj⋅fG(j∣Xi,βT,ϕ)1−∑j=0kfG(j∣Xi,βT,ϕ)−exp⁡(XiTb))/(1+ϕ∗exp⁡(XiTb))+∑j=0kfNB(j∣Xi,b,ϕ∗)r(j∣Xi,b,ϕ∗)1−∑j=0kfNB(j∣Xi,b,ϕ∗)}Xi]. (11)

When bs=0, the inner terms in the curl bracket in (11) are free of X regardless of b0 and ϕ∗, and (11) becomes 0 after taking the expectation with respect to X∣Y>k. Thus, βs∗ˆ is a consistent estimator for βs∗=βTs. This result does not generally hold when ν depends on X as log⁡E(Y∣X) is generally not linear in X.

However, for the intercept and dispersion parameters, Equation (8), by using (10) and replacing b0 with βT0, becomes

EX∣Y>k[∑i=1n{(μT−∑j=0kj⋅fG(j∣Xi,βT,ϕ)1−∑j=0kfG(j∣Xi,βT,ϕ)−exp⁡(XiTb))/(1+ϕ∗exp⁡(XiTb))+∑j=0kfNB(j∣Xi,b,ϕ∗)r(j∣Xi,b,ϕ∗)1−∑j=0kfNB(j∣Xi,b,ϕ∗)}],

and this is generally nonzero when fG(k)(⋅)≠fNB(k)(⋅). To investigate the amount of bias and the intractable case with βTs≠0, a numerical study will be considered in Section 4.

4. Numerical studies

The robustness discussed in Section 3.1 arises from the fact that various mixture models result in the same TNB likelihood function, ensuring that their likelihood inference is identical. Therefore, a numerical study is not necessary for checking the first robustness property. In this section, we perform a numerical study to check the robustness discussed in Section 3.2 under various simulation settings. For i=1,…,n, the outcome variable is generated from Yi∣xi,νi∼Poisson(μiνi) where μi=exp⁡(xiTβ), νi∼G with E(νi)=1 and Var(νi)=σν2. We consider the following five distributions for νi (1) gamma, (2) uniform, (3) discrete support which contains only two elements, (4) log-normal, and (5) a mixture of two log-normal distributions. Note that the gamma distribution represents the case of correct specification, and serves as a reference for evaluating performance under other misspecification scenarios. For brevity, these are called ‘gamma’, ‘uniform’, ‘two points’, ‘log-normal’, and ‘mixture’, respectively. For the covariate vector xi=(xi1,…,xi6)T, the first three covariates are drawn from normal distribution with mean 0 and variance 0.5, while the other three covariates are from the Bernoulli trial with probability 0.5. The value of β0 and βs=(β1,β2,β3,β4,β5,β6)T are specified according to the four scenarios (S1,S2,S3,S4). S1 and S2 are designed to check the cases with the null effect of covariates. We use {β0=1.2,βs=(0,0,0,0,0,0)T} and {β0=1.5,βs=(0,0,0,0,0,0)T} for S1 and S2, respectively. S3 and S4 are designed to check the cases with the non-null effect of covariates. We use {β0=0,βs=(0.2,0.5,0.8,0.2,0.5,0.8)T} and {β0=0.5,βs=(0.2,0.5,0.8,0.2,0.5,0.8)T} for S3 and S4, respectively. For each scenario, five different distributions for the random intercept, three different values of σν2=(0,0.25,0.5), and three different truncation points k=(0,1,2) are considered. In total, 132 different combinations of β, k, σν2, and G are studied, and each setting is repeated 1000 times. We set the initial sample sizes as n = 300 for all scenarios, but the number of samples monotonically decreases as k increases and varies for each iteration. Table 1 presents the average number of samples and empirical truncation probabilities depending on β, k and σν2. The results with a larger sample size, n = 500, are presented in the supplementary materials because the overall results are similar to those with n = 300.

Table 1.

Average sample sizes and empirical truncation probabilities (in parentheses) after truncation depending on β, k and σν2 when the initial sample size is 300.

  Truncation
  k = 0 k = 1 k = 2
  σν2 σν2 σν2
Scenario β0 0 0.25 0.5 0 0.25 0.5 0 0.25 0.5
S1 1.2 289 274 262 253 224 206 193 167 152
  (0.96) (0.91) (0.87) (0.84) (0.75) (0.69) (0.64) (0.56) (0.51)
S2 1.5 297 286 277 281 254 235 247 210 189
  (0.99) (0.95) (0.92) (0.94) (0.85) (0.78) (0.82) (0.70) (0.63)
S3 0 188 235 224 98 166 156 47 115 108
  (0.63) (0.78) (0.75) (0.33) (0.55) (0.52) (0.16) (0.38) (0.36)
S4 0.5 230 265 255 153 216 203 95 171 158
  (0.77) (0.88) (0.85) (0.51) (0.72) (0.68) (0.32) (0.57) (0.53)

4.1. Bias results of intercept and slope parameter estimates

To assess the biases of the TNB estimates, we examine the intercept β0 and a regression coefficient β3. Here, β3 is selected because it is the largest coefficient and is expected to show the bias pattern most clearly. For the rest of the coefficients, see the supplementary materials. Figure 1 presents the bias of β0 from S1–S4. When σν2=0, that is zero heterogeneity of random intercept, there is no bias for β0 for all scenarios. However when k=2 and large σν2, the biases are substantial when the random effect distribution is mixture, which warns of serious bias of β0 estimates by misspecified G. The interquartile ranges increase as k increases because the sample size monotonically decreases.

Figure 1.

Figure 1.

Box plots of bias of the intercept estimate. Each row represents scenarios S1, S2, S3, and S4, respectively, and each column represents a different truncation point k. In each cell, there are 11 box plots corresponding to different distributions of the random effect.

However, there is little bias in β3 estimates, as shown in Figure 2. For S1 and S2, these observations are consistent with the analytic results presented in Section 3.2. In addition, although the non-null effect is beyond the scope of our analytic result, the analytic results seem to be extended to the covariates with non-null effect for S3 and S4. Unlike β0, the estimate of βs=(β1,…,β6)T in the TNB model has been found to have little bias regardless of the misspecified G.

Figure 2.

Figure 2.

Box plots of bias of the third slope estimate. Each row represents scenarios S1, S2, S3, and S4, respectively, and each column represents a different truncation point k. In each cell, there are 11 box plots corresponding to different distributions of the random effect.

4.2. Coverage results of confidence intervals for intercept and slope parameter

We assess the coverage rate of 95% confidence intervals, and the empirical coverage rate is calculated as the number of the confidence intervals containing the true parameter divided by 1000. The 95% confidence intervals are constructed using βˆ±1.96× the model-based standard error estimates. Figures 3 and 4 present empirical coverage rates for β0 and β3 under S1–S4, respectively. The red horizontal line corresponds to 0.95. Each line represents how empirical coverage rates change according to σν2. For the rest of the coefficients, see the supplementary materials.

Figure 3.

Figure 3.

Empirical coverage rates of 95% confidence interval for the intercept. Each row represents scenarios S1, S2, S3, and S4, respectively, and each column represents a different truncation point k. Each line corresponds to each random effect distribution and the red horizontal line represents 0.95.

Figure 4.

Figure 4.

Empirical coverage rates of 95% confidence interval for the third slope. Each row represents scenarios S1, S2, S3, and S4, respectively, and each column represents a different truncation point k. Each line corresponds to each random effect distribution and the red horizontal line represents 0.95.

On the one hand, in Figure 3, the empirical coverage rates for β0 are always less than 0.75. The coverage rates in the first two rows in Figure 3 decline with k and σν2, while the coverage rates in the last two rows in Figure 3 are stable and low. In Figure 4, on the other hand, all the empirical coverage rates are approximately 0.95. The slope estimates keep their empirical coverages close to their nominal levels regardless of the misspecified random effect distribution.

4.3. Comparison of an existing R package

The R-package ‘gamlss’ [17,20] has been widely used in many studies because of its flexibility [10], and it can also implement the TNB model. The TNB of gamlss employs the Newton-Rhapson method which requires the first and second derivatives of the log-likelihood function, but their second derivative does not consider the adjustment term by the truncation. This leads to a lower empirical coverage of 95% confidence interval than the corresponding nominal level. To handle this issue, we make a new R function TruncCount for implementing TNB with fully addressed second derivatives, and it is freely available at https://sites.google.com/view/lwj221. All the algorithmic details of TruncCount are described in the Appendix. We perform a numerical study to compare its performance with the existing one from version 5.4-100.

Figure 5 presents biases and empirical coverage rates for β3 estimates under S3. The empirical coverage rates of gamlss are lower than 95% because its model-based standard errors are underestimated, while the empirical coverage rates of TruncCount are closer to 95%. However, when k = 2 and σν2 is large, we observe that its performance can deteriorate because of small sample sizes.

Figure 5.

Figure 5.

Performance comparison of the two R-packages, ‘TruncCount’ and ‘gamlss’, in terms of bias and coverage rate. The upper panel plots the biases of the β3 estimate, and each row and column represents different variances of the random effect σν2 and truncation point k, respectively. The lower panel plots empirical coverage rates of 95% confidence intervals for β3. Each row and column represent different software packages and the truncation point k, respectively, and the red horizontal lines represent 0.95.

5. Real data analysis

In this section, we analyzed data from the food-borne outbreak that occurred in Gyeonggi province, South Korea, in 2021. The data are obtained by a field investigation to discover which food ingredient is a cause of the food borne outbreak. Field epidemiologists conducted an in-depth investigation for 339 individuals with a positive number of diarrhea incidents, which is a severity measure of symptoms due to salmonellosis. In addition, they also collect their receipt records that can identify what kind of food ingredients and how much each individual consumes. Therefore, considering the sample selection by truncating the outcome variable, the TNB model is applicable in this situation.

To provide important clues about possible causes of salmonellosis to the field epidemiologists, we investigate the dose-response relationship between the number of diarrhea incidents and the amount of each ingredient. Often, the presence of the dose-response relationship is good evidence for establishing the causality [10]. In this investigation, as likely candidates, the four ingredients (i.e. egg, crab stick, ham, and fish cake) and age are considered to be covariates for the dose-response relationship.

Table 2 presents the analysis results. The regression coefficients are similar between the TNB and TPO models, but the standard errors of the former are nearly twice as those of the latter. This difference can be explained by the uncertainty of the dispersion parameter estimate in the standard error of the TNB model. The estimated dispersion parameter of the TNB models without age adjustment is 0.323 (95% CI: 0.268-0.390), and 0.336 (95% CI: 0.278-0.406) with age adjustment. Given the necessity of a non-zero overdispersion parameter, we conclude that the TNB model is more appropriate than the TPO model. For model diagnostic purposes, we calculated the Pearson residuals and provided normal Q-Q plots for each model. As shown in the Figure in Section 2 of the Supplementary Materials, the TNB model provides a better fit to the data than the TPO model.

Table 2.

Results of analyzing the dose-response relationship between the number of diarrhea and four ingredients based on the truncated samples. Four different models (TNB : TNB with 4 covariates, TNB_age : TNB with 4 covariates and age, TPO : TPO with 4 covariates, TPO_age : TPO with 4 covariates and age) are considered. * denotes the P value is less than 0.05. SE: standard error of the estimate.

  Model
Covariate Estimate SE P value Estimate SE P value
  TNB TPO
egg 0.005 0.002 0.019* 0.006 0.001 <0.001*
crab stick 0.032 0.013 0.018* 0.031 0.006 <0.001*
fish cake −0.264 0.188 0.162 −0.254 0.088 0.004*
ham −0.087 0.206 0.672 −0.065 0.095 0.496
  TNB_age TPO_age
egg 0.005 0.002 0.028* 0.005 0.001 <0.001*
crab stick 0.022 0.015 0.140 0.022 0.007 0.002*
fish cake −0.141 0.206 0.491 −0.145 0.096 0.133
ham −0.054 0.206 0.795 −0.045 0.097 0.641
age 0.004 0.002 0.070 0.004 0.001 <0.001*

Without adjustment for age in the TNB model, egg and crab stick are statistically significant. Only egg is statistically significant when age is adjusted in the TNB model, which presents some statistical reasons to consider eggs first in subsequent examinations. In fact, as many previous research works have reported that eggs are the main cause of the salmonellosis [3], this field investigation also concludes that the cause is egg after checking through various experiments. Compared to the longer list of candidates from the TPO model, the TNB model is useful in providing a narrower list for follow-up investigations.

Considering that a lot of individuals report no diarrhea, it is safe to allow the possibility of zero inflation in our application. First, as shown in Section 3.1, our TNB model results are robust against the existence of the zero inflation. However, caution is needed when interpreting βs. Considering the possible zero inflation, we may assume that there are two underlying groups, namely, vulnerable and invulnerable, to salmonellosis. Then, βs is limited in interpretation to the population vulnerable to salmonellosis rather than the whole population. Specifically, based on the TNB model with adjustment for age, the expected number of diarrhea incidents may increase by a factor of e0.005≈1.005 for each 1-gram increase in egg intake but only among the vulnerable groups.

6. Conclusion

It is important to perform field investigation quickly and accurately so that truncated count data can be obtained from sampling specialized for field epidemiology. Our study alleviates some concerns about modeling the truncated part and possible misspecification for the random effect distribution by investigating two robust properties of the TNB model. First, the TNB model can be regarded as a partially identified model in the sense that various models lead to the same truncated likelihood function. A practical meaning is that the TNB model gives reliable inference for the regression coefficients β and even zero inflation is allowed. Second, the TNB model gives robust inference for the slope parameters against the misspecified random effect distribution. With some analytic justification, our numerical study shows that the empirical coverage based on the TNB model is close to its nominal level, even when the random effect distribution is misspecified. Regarding the intercept, the estimate from the TNB model exhibits bias when the random effect distribution is misspecified. In particular, as shown in the simulation study in Section 4.1, the bias can be substantial when the distribution is a mixture of two log-normal distributions.

Our study has a limitation that it does not include an analytical proof for the non-null slope parameter case. This difficulty has also been noted in previous studies [12,14,15], which provided analytical results only for the case of a null slope. Addressing this limitation is left for future research. In addition, our study focuses on misspecification of the random intercept distribution. Investigating the robustness of more complex models that incorporate random slopes would also be an important direction for future research.

The real situations in field investigation often show more complex points than the truncation. For example, in our application, a knife used for the egg can be contaminated and used for cutting other ingredients such as crap stick or fish cake. Therefore, other ingredients may appear to be a cause; hence the domain knowledge of how the food is made should be exploited in finding the causal relationship. In addition, although we have the receipt records that can identify food ingredients, they can be different from the actual intake by each individual. Therefore, some measurement error problems can be an issue in data analysis. In some other food poisoning incidents, the case under investigation is defined using a complex form of multiple health-related symptoms. For example, the case under investigation can be defined as an individual whose sum of diarrhea and vomiting is more than equal to 2. For this, we need to develop a bivariate TNB regression model. This will be an interesting research topic to develop a sophisticated bivariate regression model that can address both contaminated ingredients and measurement errors. Recently, Böhning and Van Der Heijden [2] considered zero-truncated count data under one-inflation, and showed that generally, the zero-truncated one-inflated likelihood is equivalent to the zero-one truncated likelihood, which implies that the truncation provides interesting views in data analysis. It is also interesting to establish other equivalent relationships between models for truncated count data.

Supplementary Material

Supplementary materials.pdf

Acknowledgments

This study was exempted from review by the Institutional Review Board (IRB) of Seoul National University (IRB No. E2301/003-001) because the data were anonymized. The release of the data used in this article is governed by the Infectious Disease Control Center of Gyeonggi-do. The data can be requested from the Infectious Disease Control Center through a data use agreement. This study was partially based on the master's thesis of the first author under the supervision of the last author.

Appendix.

Algorithm of TruncCount

We use Newton-Raphson algorithm to fit the TNB model. To implement this, we need the first and second derivatives of the log-likelihood function of TNB. Their analytic forms are provided below.

Using ϕ=eψ, the probability mass function of negative binomial is given as

f(y∣x,β,ψ)=Γ(e−ψ+y)y!Γ(e−ψ)(eψ+xTβ)y(1+eψ+xTβ)−(y+e−ψ)=Πm=0y−1(1+eψm)y!(exTβ)y(1+eψ+xTβ)−(y+e−ψ).

The log-likelihood for the ithobservation (xi,yi) is

ℓi(β,ψ;yi)=∑m=0yi−1{log⁡(1+eψm)}+yixiTβ−(yi+e−ψ)log⁡(1+eψ+xiTβ), (A1)

and the log-likelihood function taking into account the truncation is

ℓi(k)(β,ψ;yi)=∑m=0yi−1{log⁡(1+eψm)}+yixiTβ−(yi+e−ψ)log⁡(1+eψ+xiTβ)−log⁡{1−∑j=0kΠm=0j−1(1+eψm)j!(exiTβ)j(1+eψ+xiTβ)j+e−ψ}. (A2)

Then, based on (A2), the score function S(k)(β,ψ) and Fisher information matrix I(k)(β,ψ) are

S(k)(β,ψ)=(∑i=1n∂∂βℓi(k)(β,ψ;yi)T,∑i=1n∂∂ψℓ(k)i(β,ψ;yi))T (A3)

and

I(k)(β,ψ)=−(∑i=1n∂2∂β∂βTℓi(k)(β,ψ;yi)∑i=1n∂2∂β∂ψℓi(k)(β,ψ;yi)∑i=1n∂2∂ψ∂βTℓi(k)(β,ψ;yi)∑i=1n∂2∂ψ2ℓi(k)(β,ψ;yi)). (A4)

The following results are used to compute (A3) and (A4).

Let pi(k)=∑j=0kf(j∣xi,β,ψ). Then, we have

∂∂βℓi(k)(β,ψ;yi)=∂∂βℓi(β,ψ;yi)+∑j=0k{f(j∣xi,β,ψ)∂∂βℓi(β,ψ;j)}1−pi(k)

and

∂∂ψℓi(k)(β,ψ;yi)=∂∂ψℓi(β,ψ;yi)+∑j=0k{f(j∣xi,β,ψ)∂∂ψℓi(β,ψ;j)}1−pi(k),

where

∂∂βℓi(β,ψ;yi)=(yi−exiTβ)1+eψ+xiTβxi,and∂∂ψℓi(β,ψ;yi)=∑m=0yi−1eψm1+eψm+e−ψlog⁡(1+eψ+xiTβ)−(yi+e−ψ)eψ+xiTβ1+eψ+xiTβ.

Next, we have

∂2ℓi(k)(β,ψ;yi)∂β∂βT=∂2ℓi(β,ψ;yi)∂β∂βT+∑j=0kf(j∣xi,β,ψ)⋅{∂2ℓi(β,ψ;j)∂β∂βT+∂ℓi(β,ψ;j)∂β∂ℓi(β,ψ;j)∂βT}1−pi(k)+(∑j=0kf(j∣xi,β,ψ)∂ℓi(β,ψ;j)∂β)(∑j=0kf(j∣xi,β,ψ)∂ℓi(β,ψ;j)∂βT)/(1−pi(k))2,∂2ℓi(k)(β,ψ;yi)∂ψ2=∂2ℓi(β,ψ;yi)∂ψ2+∑j=0kf(j∣xi,β,ψ)⋅{∂2ℓi(β,ψ;j)∂ψ2+(∂ℓi(β,ψ;j)∂ψ)2}1−pi(k)+(∑j=0kf(j∣xi,β,ψ)∂ℓi(β,ψ;j)∂ψ)2/(1−pi(k))2,

and

∂2ℓi(k)(β,ψ;yi)∂β∂ψ=∂2ℓi(β,ψ;yi)∂β∂ψ+{∑j=0kf(j∣xi,β,ψ)(∂2ℓi(β,ψ;j)∂β∂ψ+∂ℓi(β,ψ;j)∂β∂ℓi(β,ψ;j)∂ψ)}/(1−pi(k))+{(∑j=0kf(j∣xi,β,ψ)∂ℓi(β,ψ;j)∂ψ)(∑j=0kf(j∣xi,β,ψ)∂ℓi(β,ψ;j)∂β)}/(1−pi(k))2,

where

∂2ℓi(β,ψ;yi)∂β∂βT=−exiTβ(1+yieψ)(1+eψ+xiTβ)2xixiT∂2ℓi(β,ψ;yi)∂ψ2=∑m=0yi−1eψm(1+eψm)2−e−ψlog⁡(1+eψ+xiTβ)+2exiTβ1+eψ+xiTβ−(yi+e−ψ)eψ+xiTβ(1+eψ+xiTβ)2∂2ℓi(β,ψ;yi)∂β∂ψ=(∂2ℓi(β,ψ;yi)∂ψ∂βT)T=−(yi−exiTβ)eψ+xiTβ(1+eψ+xiTβ)2xi.

The R-package ‘gamlss’ uses the same score function, but uses the Fisher information of NB instead of that of TNB. In other words, log⁡[1−∑j=0k{(Πm=0j−1(1+eψm)/j!)((exiTβ)j/(1+eψ+xiTβ)j+e−ψ)}] in (A2) is the omitted term in their Fisher information.

Funding Statement

This work was supported by the National Research Foundation of Korea (NRF) grant funded by the Korea government (MSIT) (no. 2021R1A2C1014409).

Disclosure statement

No potential conflict of interest was reported by the authors.

Supplemental Material

Supplemental data for this article can be accessed online at http://dx.doi.org/10.1080/02664763.2025.2545890.

References

  • 1.Böhning D. and Ronny K., Equivalence of truncated count mixture distributions and mixtures of truncated count distributions, Biometrics 62 (2006), pp. 1207–1215. [DOI] [PubMed] [Google Scholar]
  • 2.Böhning D. and van der Heijden P.G.M., The identity of the zero-truncated, one-inflated likelihood and the zero-one-truncated likelihood for general count densities with an application to drink-driving in Britain, Ann. Appl. Stat. 13 (2019), pp. 1198–1211. [Google Scholar]
  • 3.Braden C.R., Salmonella enterica serotype enteritidis and eggs: a national epidemic in the United States, Clin. Infect. Dis. 43 (2006), pp. 512–517. [DOI] [PubMed] [Google Scholar]
  • 4.Cameron A. and Trivedi P.K., Regression Analysis of Count Data, 2nd ed., Cambridge University Press, Cambridge, UK, 2013. [Google Scholar]
  • 5.Cragg J.G., Some statistical models for limited dependent variables with application to the demand for durable goods, Econometrica 39 (1971), pp. 829–844. [Google Scholar]
  • 6.Dahiya R.C. and Gross A.J., Estimating the zero class from a truncated poisson sample, J. Am. Stat. Assoc. 68 (1973), pp. 731–733. [Google Scholar]
  • 7.Grogger J.T. and Carson R.T., Models for truncated counts, J. Appl. Econ. 6 (1991), pp. 225–238. [Google Scholar]
  • 8.Gurmu S. and Trivedi P.K., Overdispersion tests for truncated poisson regression models, J. Econ. 54 (1992), pp. 347–370. [Google Scholar]
  • 9.Hardin J.W. and Hilbe J.M., Regression models for count data from truncated distributions, Stata J. 15 (2015), pp. 226–246. [Google Scholar]
  • 10.Hilbe J.M., Negative Binomial Regression, 2nd ed., Cambridge University Press, Cambridge, UK, 2011. [Google Scholar]
  • 11.Lee W., Kim J., and Lee D., Revisiting the analysis pipeline for overdispersed Poisson and binomial data, J. Appl. Stat. 50 (2022), pp. 1–22. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.McCulloch C.E. and Neuhaus J.M., Misspecifying the shape of a random effects distribution: why getting it wrong may not matter, Stat. Sci. 26 (2011), pp. 388–402. [Google Scholar]
  • 13.Mullahy J., Specification and testing of some modified count data models, J. Econ. 33 (1986), pp. 341–365. [Google Scholar]
  • 14.Neuhaus J.M., Hauck W.W., and Kalbfleisch J.D., The effects of mixture distribution misspecification when fitting mixed-effects logistic models, Biometrika 79 (1992), pp. 755–762. [Google Scholar]
  • 15.Neuhaus J.M., McCulloch C.E., and Boylan R., Estimation of covariate effects in generalized linear mixed models with a misspecified distribution of random intercepts and slopes, Stat. Med. 32 (2013), pp. 2419–2429. [DOI] [PubMed] [Google Scholar]
  • 16.Pawitan Y., In All Likelihood: Statistical Modelling and Inference Using Likelihood, Oxford University Press, Oxford, England, 2001. [Google Scholar]
  • 17.Rigby R.A. and Stasinopoulos M.D., Generalized additive models for location, scale and shape, J. R. Stat. Soc. Ser. C (Appl. Stat.) 54 (2005), pp. 507–554. [Google Scholar]
  • 18.Rose C.E., Martin S.W., Wannemuehler K.A., and Plikaytis B.D., On the use of zero-inflated and hurdle models for modeling vaccine adverse event count data, J. Biopharm. Stat. 16 (2006), pp. 463–481. [DOI] [PubMed] [Google Scholar]
  • 19.Sheu M.l., Hu T.W., Keeler T.E., Ong M., and Sung H.Y., The effect of a major cigarette price change on smoking behavior in California: a zero-inflated negative binomial model, Health Econ. 13 (2004), pp. 781–791. [DOI] [PubMed] [Google Scholar]
  • 20.Stasinopoulos M.D., Rigby R.A., Heller G.Z., Voudouris V., and De Bastiani F., Flexible Regression and Smoothing: Using GAMLSS in R, CRC Press, Boca Raton, 2017. [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplementary materials.pdf

Articles from Journal of Applied Statistics are provided here courtesy of Taylor & Francis

RESOURCES