Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2024 Apr 24.
Published in final edited form as: Stat Methods Med Res. 2020 Jun 11;29(11):3351–3361. doi: 10.1177/0962280220927720

An imputation approach for fitting two-part mixed effects models for longitudinal semi-continuous data

Hyoyoung Choo-Wosoba 1, Debamita Kundu 1, Paul S Albert 1
PMCID: PMC11040328  NIHMSID: NIHMS1692939  PMID: 32524904

Abstract

Two-part mixed effects models are often used for analyzing longitudinal data with many zeros. Typically, these models are formulated with binary and continuous components separately with random effects that are correlated between the two components. Researchers have developed maximum-likelihood and Bayesian approaches for fitting these models that often require using particular software packages or very specialized software. We propose an imputation approach that will allow practitioners to separately use standard linear and generalized linear mixed models to estimate the fixed effects for two-part mixed effects models with complex random effects structures. An approximation to the conditional distribution of positive measurements given an individual’s pattern of non-zero measurements is proposed that can be easily estimated and then imputed from. We show that for a wide range of parameter values, the imputation approach results in nearly unbiased estimation and can be implemented with standard software. We illustrate the proposed imputation approach for the analysis of longitudinal clinical trial data with many zeros.

Keywords: Approximate conditional approach, random effects, imputation, asymptotic bias, two-part model

1. Introduction

Statistical outcomes, where measurements are either zero or a positive value, are often called semi-continuous. An example of this type of outcome is a dietary assessment where the amount is zero if the nutrient is not ingested and a positive value, otherwise. For modeling longitudinal data of this type, two-part mixed models have been proposed in which the binary (measurement is non-zero) and continuous (value if measurement is positive) components are modeled with a generalized linear mixed model and a linear mixed model, respectively. Numerous authors have proposed two-part mixed models for analyzing semi-continuous longitudinal data that have recognized the importance of incorporate random effects that are correlated between the two model components,1,2 and most recently,3 where the large recent literature on these models has been reviewed. Various authors4,5 have demonstrated bias in the estimation if dependence in the two processes is ignored.

Although the two-part mixed models are appealing from a practical viewpoint, particularly when the number of random effects is not small, fitting them can be computationally intensive. Although, directly maximizing the full likelihood by integrating over the random effects distribution can be done, it is only feasible for a small number of random effects (Liu et al.6 used PROC NLMIXED to conduct maximum-likelihood in SAS). Bayesian approaches require computationally intensive sampling approaches for estimation.7–9 A major computational breakthrough that allows for exact likelihood inference10 has been recently applied for modeling semi-continuous autoregressive longitudinal data.11 However, this methodology uses specialized software, requires a probit link for the binary in the generalized linear mixed model, and does not lend itself to easy implementation for the practitioner.

In this paper, we propose an imputation approach that allows practitioners to use standard linear and generalized linear mixed models to fit two-part mixed models with complex random effect structures that are correlated between the two processes. Conceptually, the continuous component is only present when the binary component is positive, thereby causing bias when the two processes are fit separately. The idea is to impute values for the missing continuous measurements when the binary values are zero, thereby eliminating bias in the separate modeling of both components. We develop an approximation to the conditional distribution of an individual’s positive measurements given their non-zero measurement pattern under the two-part mixed model with correlated random effects. Although this approximation has not been used for fitting two-part mixed models, a similar one has been used for analyzing informative missing data in longitudinal studies12 and for joint modeling of longitudinal and survival data.13

We introduce the two-part mixed model and propose the imputation approach in Section 2. In Section 3, we quantify the asymptotic bias of the imputation approach and compare it to the naive approach, where we assume that the two processes are independent from each other. We conduct simulations to examine the small sample properties of the approach in Section 4. We illustrate the methodology in analyzing data from a longitudinal clinical trial in Section 5. A discussion follows in Section 6.

2. The conditional approximation-based imputation approach

In this section, we propose an imputation approach that approximates the maximum-likelihood estimators obtained with a full joint modeling approach. We begin by showing the approximation for a shared intercept model followed by the more complex cases of a random time-trend and two random effects where one is nested within the other.

2.1. Two-part mixed model

Let Zi={Z1,Z2,⋯,Zni} be a vector of indicator functions that are equal to 1 when the jth measurement on the ith subject is positive and equal to zero if the measurement is zero; ni is the number of measurements on the ith subject, and N is the number of subjects. There is an associated positive value Yij when Zij=1, that is undefined when Zij=0. We can construct a two-part mixed model by dividing data into a binary and continuous part, and separately modeling Zi and Yi∣Zi. The model can be written as

logitr(Zij=1∣Ui)=Xijθ+WijUi (1)
Yij∣Zij=1,Vi∼N(Xijβ+WijVi,σe2) (2)

where θ and β are p-dimensional vectors of fixed-effect coefficients for the binary part and the continuous part, respectively. Further, Ui and Vi are q dimensional vectors of random effects for the two components, and Xij and Wij are design matrices for the fixed and random parts, respectively. We assume that all the random effect coefficients, Ui and Vi follow a multivariate normal distribution with a mean vector of zeros and a covariance matrix m effect coefficients, ing l joint modeling approach. We btween the binary and continuous parts.

The likelihood function for the two-part mixed model (equations (1) and (2)) is

L=∏i=1N∫Ui⋯∫Vij∏ini{1−Pr(Zij=1∣θ,Ui)}I(Zij=0)
×{Pr(Zij=1∣θ,Ui)f(Yij∣Yij>0,β,Vi)}I(Zij=1)×f(Ui,Vi∣Ω)dVidUi

which can be maximized with respect to the parameters to obtain the maximum-likelihood estimators. However, evaluating the likelihood is computationally burdensome due to the high-dimensional integration. Olsen and Schafer1 proposed a higher order Laplace approximation for the likelihood to simplify the numerical integration. Tooze et al.2 and Liu et al.,6 among others, have proposed using PROC NLMIXED in SAS for maximum-likelihood estimation. This approach uses adaptive Gaussian quadrature14 to directly integrate over the multivariate random effect distribution. We show in this article how estimation can be done by separately modeling the binary and continuous components using generalized linear mixed and linear mixed models, routines that are available with all standard statistical software packages. We introduce the proposed imputation approach with the case of two random intercepts.

2.2. Approximate approach for random intercept model

We fit the binary component with a generalized linear mixed model (e.g. glmer in R package lme4). For the continuous part, we use a conditional approximation-based imputation approach to obtain fixed effect estimates with reduced bias. We introduce the approach with random intercepts that are correlated between the two processes. If we knew the conditional distribution of the continuous values (Yij) given they are positive. (Zij=1), we could use it to impute values of Yij that are undefined when Zij=0 to obtain unbiased estimates of the fixed effects for the continuous component. This conditional distribution can be written as

f(Yi∣Zi)=∫vi{∏j=1nif(Yij∣Yij>0,vi)}h(vi∣Zi)dvi (3)

where Yi is a vector of positive responses associated with Zij=1. The distribution given by equation (3) is difficult to evaluate, maximize to obtain parameter estimates, and to then impute from. Thus, we obtain an approximation to the conditional distribution that is easy for the practitioner to work with. Using sufficiency arguments similar to those presented in Wu and Follmann,15 it is easy to show that h(vi∣Zi)=h(vi∣di), where di=∑jZij when the binary process does not have a time-dependent fixed or random effect. However, the identification of these sufficient statistics is difficult to derive in most cases, and we propose approximating h(vi∣Zi) by h(vi∣di).

We further approximate h(vi∣di) as a normal distribution with a mean that is a simple quadratic function of di and a variance that is constant. Simulations under the full joint model demonstrated the adequacy of this approximation under a wide range of parameter values. Assuming that h(vi∣di) is normal with mean β0∗+δ0di+δ1di2 and variance σv∗2, the conditional distribution can be expressed as the linear mixed model,

Yij=Xijβ∗+δ0di+δ1di2+vi∗+ϵij∗ (4)

where vi∗=vi−(β0∗+δ0di+δ1di2) follows a normal distribution with mean zero and a constant variance σv∗2, β∗ are the fixed effects characterizing the approximate conditional distribution, and ϵij∗ is normal with mean 0 and variance σϵ2∗. Thus, the parameters of this approximate conditional distribution can be estimated with standard linear mixed modeling software.

Estimation can be done with the following two-stage algorithm. The longitudinal binary responses are analyzed with a generalized linear mixed model (equation (1)) in the first stage. An analysis of the longitudinal continuous data is performed with Steps 1–4 in the following algorithm:

Step 1: Fit the approximate conditional model (equation (4)) using a linear mixed modeling software. Obtain individual random effects estimates using shrinkage estimation.

Step 2: Impute values of Yij when Zij=0 by generating from the estimated approximate conditional distribution obtained in Step 1.

Step 3: Fit the linear mixed model (equation (2)) to the complete data containing the imputed values when Zij=0.

Step 4: Repeat Steps 2–3 I times (I=100 in this study) to obtain a vector of fixed effects estimates by averaging I sets of imputed complete datasets.

Rubin’s Rule16 can be used for estimating standard errors of the parameter estimates.

2.3. Random slope model

We consider variation in subject-specific time trend (slope). Thus, the random effect coefficients are now Ui={u0i,u1i} for the binary part and for the continuous part. Then, extended from the random intercept model structure, the approximate conditional distribution of Yij∣Zij based on the random slope structure

Yij∣Zij=1,vi∗,di=Xijβ∗+δ0di+δ1di2+δ2tijdi+δ3tijdi2+v0i∗+v1i∗tij+ϵij∗ (5)

Compared with equation (4), equation (5) has two additional fixed-effect terms, δ2tijdi and δ3tijdi2 and one additional random effect term, v1i∗tij, that results from approximating h(vi0,vi1∣di) by a multivariate normal distribution with a constant conditional variance Σv∗. Then, based on the approximate conditional distribution (equation (5)), we can estimate the fixed effects of the continuous component in a similar way as described in Section 2.2.

2.4. Nested random effects model

We consider the case of two random effects with one nested within the other. Specifically, a two-part model of this type is

logitPr(Zijk=1∣ui)=θ0+θ1tij+θ2Gi+ui (6)
Yijk∣Zijk=1,vi∼N(β0+β1tij+β2Gi+vi,σϵ2) (7)

where Yijk and Zijk indicate the kth replicate measurement at the jth time point within the ith subject. Further, ui={ui,uij} and vi={vi,vij} are the random effect components of the binary part and the continuous part, where ui and vi are subject-specific random effects, and uij and vij are random effects nested within individual; σu02 and σv02 are variances of ui and vi, and σu12 and σv12 are variances of uij and vij; ρ0 is the correlation coefficient between ui and vi, and ρ1 is the correlation coefficient between uij and vij.

The conditional distribution based on the nested random effects structure is

f(Y∣Z)=∏i=1N∫vi∏j=1Ji∫vij∏k=1nijf(Yijk∣Yijk>0,β,vi,vij,σe2)h(vi,vij∣Zi)dvijdvi (8)

where N is the total number of subjects, Ji is the total number of time points on the ith subject, and nij is the total number of observations within the jth time point of the ith subject. Similar to equation (5), the approximate conditional expectation of Yijk can be expressed as

E(Yijk∣Zijk=1,vi∗,vij∗,di)=β0∗+β1∗tij+β2∗Gi+δ0di+δ1di2+δ2mij+δ3mij2+vi∗+vij∗ (9)

where di=∑j,kZijk, and mij=∑kZijk. The conditional model simply assumes that vi∗ and vij∗ follow independent normal distributions with mean zero and variances that do not depend on di or mij, respectively. The imputation approach for the nested design is then similar to the algorithm presented in Section 2.2.

3. Quantification of asymptotic bias

Su et al.5 demonstrated that separately modeling the two components (i.e. treating the two processes as independent) when the two processes are correlated results in asymptotically unbiased fixed effect estimation for the binary component and sizable bias for the continuous component. Thus, we evaluate the asymptotic bias for fixed effects estimation of the continuous model. As in Su et al.,5 we evaluate asymptotic bias under a random intercepts model. We consider the following model,

logitPr(Zij=1∣ui)=θ0+θ1tij+θ2Gi+uiYij∣Zij=1,vi∼N(β0+β1tij+β2Gi+vi,σe2) (10)

where θ={θ0,θ1,θ2} and β={β0,β1,β2} are fixed effect coefficients corresponding to an intercept, slope over time tij from 0 to 19 (ni=20), and a group effect of Gi generated from a Bernoulli distribution with size N and probability of 0.5 for both binary and continuous parts; σe2 is the error variance from the continuous part; ui and vi are the two random intercepts following a multivariate normal distribution with a mean vector of zeros and a covariance matrix, Σu,v given by

Σu,v=[σu2ρσuσvρσuσvσv2]

where ρ denotes the correlation between the two random intercepts. Asymptotic bias is defined as the bias obtained for a fixed longitudinal design as the number of subjects gets large (N→d∞). The approximate conditional distribution for the random intercepts model is characterized by the linear mixed model.

Yij=β0∗+β1∗tij+β2∗Gi+δ0di+δ1di2+vi∗+ϵij∗ (11)

The asymptotic bias of the imputation approach starts with estimating parameters based on the approximate conditional model (equation (11)) given by

ζ∗=maxζEF[logLc(Y;ζ)] (12)

where Lc is the likelihood corresponding to the linear mixed model (11), are parameters from the conditional model, and EF[logLc(Y;ζ)] is the expected value of the conditional likelihood under the full model (equation (10)). Maximizing equation (12) is analytically difficult since the calculation requires integrating over a complex likelihood. As an alternative, we numerically evaluate ζ∗ by approximating EF[logLc]≈1M∑m=1MlogLc(Ym;ζ) with simulating a large number of Y′s (large M under the full model) and performing the maximization. We then obtain the asymptotic bias of β by maxβ1M∑m=1MlogL(Ym,β)−β, where realizations are simulated under equation (10) with missing values of Y (when Z=0) that are imputed based on the approximate conditional model with parameters ζ∗, and with M=500,000.

We consider the case where the number of repeated measure, ni, is 20 and examine the asymptotic bias as a function of ρ. Figure 1 compares the asymptotic bias of β0, β1, and β2 for the imputation and naive approach (that assumes independence between the two processes, ρ=0) for a fixed set of parameter values with the varying of ρ. The figure shows that the proposed imputation approach substantially reduces asymptotic bias over a wide range of ρ.

Figure 1.

Figure 1.

The relative asymptotic bias as a function of ρ. Under model (10), the parameters are θ={−0.39,−1.75,1.98}, β={−2.21,−0.85,3.87}, σu2=1.77, σv2=1.60, and σϵ2=0.02.

In order to more fully evaluate the asymptotic bias of the imputation approach, we compute the bias over a wide range of parameter values. We do this by generating parameters under a normal distribution with mean given by θ={−0.5,−1,log(2)}, β={−0.3,−0.5,2}, log(σu2)=log(σv2)=log(2), and log(σϵ2)=log(0.1), and ρF=0, where ρF is Fisher transformed for the correlation coefficient. Further, we assume that simulated random parameters are independent from each other with variances that result in 25th and 75th percentiles for θ0 of (1.18, 0.15), for θ1 of (1.68, −0.35), for θ2 of (0.02, 1.39), for β0 of (0.96, 0.38), for β1 of (1.16, 0.17), for β2 of (1.31, 2.70), for ρ of (0.26, 0.26), for σu2 of (0.56, 0.82), for σv2 of (1.75, 2.29), and for σϵ2 of (0.06, 0.17). Figure 2 shows a plot of the asymptotic bias from the naive approach versus the imputation approach. Each point in the figure shows both biases for a randomly generated parameter vector. The much smaller spread on the y axis than the x axis demonstrates the dramatic reduction in bias for the proposed approach as compared to the naive approach of fitting the models separately.

Figure 2.

Figure 2.

The asymptotic bias comparison.

4. Finite sample properties

We evaluate the proposed imputation method by assessing finite-sample bias with two different random effect design structures, a random slope case and a nested random effects case. We generated data under equations (1) and (2) for the random slope and equations (6) and (7) for the nested random effects model. For each case, we consider a time effect and a group effect.

4.1. A random slope case

We evaluate the imputation approach with ui and vi in equation (11) being replaced by ui0+ui1tij and vi0+vi1tij, respectively. The parameters θ and β are set as {1,−1,log(2)} and {−0.3,−0.5,2}, respectively. For a fixed set of variance components and with corr(ui0,vi1)=corr(ui1,vi0)=0, Table 1 presents the finite sample bias for the fixed effects of the continuous component model with random intercept and slope effects.

Table 1.

The simulation summary for the random slope structure with Monte-Carlo size of 500; N=500, ni=20, θ={θ0,θ1,θ2}={1,−1,log(2)}, σu02=0.5, σu12=0.I, σv02=0.05, σv12=0.03, σϵ2=0.08.

ρ0=ρ1=0.8

Imputation approach Naive approach


Parameters True Bias SEa SErbb MSEd Bias SEa SEHc MSEd

β0 −0.3 0.005 0.0239 0.0270 0.0006 0.014 0.0236 0.0230 0.0007
β1 −0.5 0.015 0.0159 0.0183 0.0005 0.063 0.0128 0.0125 0.0041
β2 2.0 −0.018 0.0305 0.0326 0.0013 −0.019 0.0305 0.0301 0.0013
ρ0=ρ1=0.5

Imputation approach Naive approach


Parameters True Bias SEa SErbb MSEd Bias SEa SEHc MSEd

β0 −0.3 0.004 0.0244 0.0273 0.0006 0.008 0.0239 0.0232 0.0006
β1 −0.5 0.008 0.0165 0.0191 0.0003 0.038 0.0125 0.0126 0.0016
β2 2.0 −0.011 0.0311 0.0334 0.0011 −0.012 0.0310 0.0306 0.0011
ρ0=0.8, ρ1=0.2

Imputation approach Naive approach


Parameters True Bias SEa SErbb MSEd Bias SEa SEHc MSEd

β0 −0.3 0.007 0.0245 0.0271 0.0006 0.029 0.0240 0.0231 0.0014
β1 −0.5 0.002 0.0170 0.0194 0.0003 0.015 0.0125 0.0126 0.0004
β2 2.0 −0.007 0.0312 0.0330 0.0010 −0.014 0.0310 0.0305 0.0012
ρ0=0.2, ρ1=0.8

Imputation approach Naive approach


Parameters True Bias SEa SErbb MSEd Bias SEa SEHc MSEd

β0 −0.3 0.002 0.0244 0.0272 0.0006 −0.012 0.0238 0.0233 0.0007
β1 −0.5 0.015 0.0166 0.0184 0.0005 0.062 0.0127 0.0126 0.0039
β2 2.0 −0.017 0.0306 0.0332 0.0012 −0.010 0.0305 0.0307 0.0010

MSE: mean squared errors.

a

Monte-Carlo standard errors.

b

Standard errors based on Rubin’s Rule.

c

Hessian-based standard errors.

d

Mean squared errors based on Monte-Carlo standard errors.

As expected, all the biases for both approaches are smaller as the correlations are lower, especially as the correlation coefficient for the random slope, ρ1 is smaller. In general, the relative bias for the proposed imputation is smaller than for the naive approach. The relative bias for the fixed effect estimates using the imputation are lower than 5%, which is in contrast to the naive approach where the relative bias can be substantially more than 10%. Furthermore, the Rubin’s Rule-based standard errors are close to the Monte-Carlo estimates, suggesting their good performance in this setting.

The comparison of the mean squared errors (MSE) for the parameter estimates shows that even taking into account the increase in the standard errors with the naive approach, the imputation approach has a smaller MSE than the naive approach. The imputation approach, in general, has a smaller MSE than the naive approach.

4.2. A nested random effects case

For the nested random effects structure, we generate a dataset with three replicates (nij=3) within each time point based on equations (6) and (7). Due to the small number of replicates, we only consider a linear term for mij in the approximate conditional model, equivalent to δ3=0 in equation (9). The naive approach assumes that the two random effects from each components are all uncorrelated from each other. Table 2 shows the bias for the imputation versus the naive approaches under different degrees of correlation between the two processes. In general, the imputation approach performs much better when the naive approach is highly biased. The cases where the bias is larger for the imputation as compared to the naive approach are ones where the bias of both approaches are small.

Table 2.

The simulation summary for the nested random effect structure with Monte-Carlo size of 500; N=500, ni=20, nij=3, θ={θ0,θ1,θ2}={−0.5,−I,log(2)}, σui2=1, σuij2=0.1, σvi2=2, σvij2=0.25, σϵ2=0.08.

ρ0=ρ1=0.8

Imputation approach Naive approach


Parameters True Bias SEa SErbb MSEd Bias SEa SEHc MSEd

β0 −0.3 −0.040 0.1134 0.1244 0.0145 0.297 0.1015 0.0981 0.0988
β1 −0.5 0.048 0.0179 0.0178 0.0026 0.038 0.0160 0.0157 0.0017
β2 2.0 −0.058 0.1295 0.1607 0.0201 −0.129 0.1300 0.1332 0.0337
ρ0=ρ1=0.5

Imputation approach Naive approach


Parameters True Bias SEa SErbb MSEd Bias SEa SEHc MSEd

β0 −0.3 −0.023 0.1200 0.1348 0.0150 0.186 0.1055 0.1015 0.0457
β1 −0.5 0.030 0.0181 0.0181 0.0012 0.024 0.0160 0.0157 0.0008
β2 2.0 −0.036 0.1386 0.1757 0.0205 −0.082 0.1366 0.1380 0.0253
ρ0=0.8, ρ1=0.2

Imputation approach Naive approach


Parameters True Bias SEa SErbb MSEd Bias SEa SEHc MSEd

β0 −0.3 0.014 0.1150 0.1267 0.0134 0.265 0.1015 0.0990 0.0803
β1 −0.5 0.012 0.0180 0.0181 0.0005 0.020 0.0160 0.0157 0.0007
β2 2.0 −0.034 0.1296 0.1642 0.0179 −0.120 0.1304 0.1345 0.0314
ρ0=0.2, ρ1=0.8

Imputation approach Naive approach


Parameters True Bias SEa SErbb MSEd Bias SEa SEHc MSEd

β0 −0.3 −0.060 0.1217 0.1398 0.0184 0.108 0.1058 0.1032 0.0229
β1 −0.5 0.048 0.0185 0.0180 0.0026 0.027 0.0164 0.0157 0.0010
β2 2.0 −0.036 0.1398 0.1829 0.0209 −0.043 0.1378 0.1404 0.0208

MSE: mean squared errors.

a

Monte-Carlo standard errors.

b

Standard errors based on Rubin’s Rule.

c

Hessian-based standard errors.

d

Mean squared errors based on Monte-Carlo standard errors.

The estimated standard errors obtained with Rubin’s Rule are moderately inflated for the group effect β2, while for the other two parameters, these standard errors are nearly unbiased (related to the Monte-Carlo standard errors). However, the Rubin’s Rule-based standard errors for the group effect became much closer to the MonteCarlo ones when the number of clusters increases (Table S3 in the supplement).

In the hope of improving the performance of the proposed imputation model, we investigated approaches that approximated the conditional distribution with models that allowed more flexible random effects distributions with variances that can vary with di in the supplement (Tables S1 and S2). These approaches did not show improved estimation performance relative to the simple linear mixed model for approximating the conditional distribution.

For both the random slope and nested random effect cases, we fit a Bayesian model using Markov chain Monte Carlo (MCMC) on the simulated datasets (see Appendix C for a detailed explanation of the method and the results). The Bayesian approach is slightly more efficient at the expense of computational inefficiency (an average of one day per simulated dataset for the Bayesian and 11 minutes for the imputation approach). A Bayesian approach for fitting the nested case (see Appendix C) provided very similar results, but was much less computationally efficient.

5. Application study—CHEF data

We illustrate the proposed methodology using longitudinal data from the Cultivating Healthful Environments in Families of Youth with Type 1 Diabetes (CHEF) study.17 The CHEF study is a longitudinal study enrolling 8- to 16-year-old children with Type 1 diabetes where a primary objective was to evaluate a behavioral intervention on longitudinal measures of dietary intake. A total of 136 participants were randomly assigned to either a target behavioral intervention for improving diet or standard care. The intake of different types of foods was measured for each child at six time points with up to three replicates within each time point. In this application, we select the whole grain (WG) intake as a response variable where many of the repeated measure were zero (50% zeros).

In this analysis, the two-part model with a nested random effect structure is chosen in order to account for both correlations across replicates as well as across time points. Table 3 shows the results using the imputation and naive approaches. Although the results are similar, there were some important differences with the two approaches. Most notably, the p value for the group effect is smaller for the imputation as compared with the naive approach. For the binary component, there were no significant effects of time or group on the probability of a non-zero whole grain intake measurement (Table 3). We also conducted a Bayesian approach with a nested random effect structure. The Bayesian approach leads to similar inferences as the imputation approach (see Appendix C).

Table 3.

Fixed effect estimation for whole grain intake. Inference for the continuous and binary components with the imputation and naive approaches.

Parameters Estimates SEbsa SEHb pbsc pHd

Binary part
 Generalized linear mixed model Intercept –0.086 0.1853 0.1495 0.6512 0.5752
Time –0.035 0.0431 0.0343 0.4209 0.3118
Sex 0.067 0.1495 0.1413 0.6632 0.6450
Group 0.181 0.2141 0.1869 0.4196 0.3550
Group × time 0.039 0.0596 0.0515 0.5017 0.4366
Parameters Estimates SEbsa SErbb pbsc prbd

Continuous part
 Imputation approach Intercept −0.094 0.0730 0.0841 0.1980 0.2662
Time −0.020 0.0190 0.0194 0.2917 0.2971
Sex 0.057 0.064 0.0746 0.3703 0.4420
Group 0.195 0.0844 0.0913 0.0209 0.0333
Group × time −0.002 0.0283 0.0263 0.9436 0.9346
Parameters Estimates SEbsa SEHe pbsc pHf

Continuous part
 Naive approach Intercept −0.009 0.0675 0.0710 0.8939 0.9014
Time −0.018 0.0184 0.0178 0.3280 0.3017
Sex 0.051 0.0624 0.0637 0.4135 0.4219
Group 0.180 0.0830 0.0884 0.0302 0.0421
Group × time −0.003 0.0280 0.0259 0.9148 0.9008

MSE: mean squared errors.

a

Nonparametric bootstrap-based standard error.

b

Rubin’s Rule-based standard error.

c

Nonparametric bootstrap-based p value.

d

Rubin’s Rule-based p value.18

e

Hessian-based standard error.

f

Hessian-based p value.

g

For the binary part, we obtain the fixed effect estimates as (−0.086, −0.035, 0.067, 0.181, 0.039) with the nonparametric bootstrap-based and the Hessian-based standard errors as (0.1853, 0.0431, 0.1495, 0.2141, 0.0596) and (0.1495, 0.0343, 0.1413, 0.1869, 0.0515) for the intercept, time, sex, group, and group × time effects, respectively.

6. Discussion

This article develops a simple imputation approach for fitting two-part mixed models without the need for specialized case-specific software. As reported by Su et al.,5 estimation of the continuous component are biased when the binary and continuous components are correlated, which is generally the case. They mentioned the connection with informative missingness that is induced by correlated random effects but do not propose an alternative to complex joint modeling for parameter estimation.

We propose an imputation approach where we impute based on a simple approximation to the conditional distribution of the continuous measurements given that it is positive. We show that this approach greatly reduces the bias involved in separately fitting the two components using standard statistical software. A similar type of imputation has been proposed for fitting joint models for longitudinal and time-to-event data,13,19 and uses the original idea of approximating a shared random parameter model for informative dropout proposed by Wu and Bailey;12 see a recent review of these methods by Albert.20

A comparison of the imputation with a full Bayesian approach shows that both methods provide similar inferences. Further, the Bayesian approach was substantially more computationally expensive than the proposed imputation approach. However, in some contexts, a full likelihood Bayesian approach is advantageous in that models can be compared with well established techniques such as deviance information criterion (DIC).

We approximate the conditional distribution of the continuous measurements given the non-zero status by a normal distribution with a quadratic function of the number of positive measurements and a constant variance. We found that the polynomial mean function closely approximated the mean of the conditional distribution. However, we did observe that the conditional distribution did show some heteroscedasticity and minor skewness. Additional effort to improve the approximation using a non-parametric approach to random effects estimation or allowing the variance of the random effects to vary with the mean did not consistently improve the performance of the approach.

The proposed imputation approach can be extended to fitting multivariate two-part models. This would involve approximating the multivariate conditional distribution using multivariate linear mixed models which could be done with pseudo-likelihood approaches,21 even in high dimensions.

Supplementary Material

supplementary materials

Acknowledgements

This work utilized the computational resources of the NIH HPC Biowulf cluster (http://hpc.nih.gov).

Funding

The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: The work was supported by the Intramural Research Program of US National Institutes of Health, National Cancer Institute.

Footnotes

Supplemental material

Web tables referenced in Section 4.1 are available with this article as a separate file including Table S1: The simulation summary for the random intercept structure with Monte-Carlo size of 500, Table S2: The simulation summary for the finite mixture-based imputation approach with a random intercept structure based on Monte-Carlo size of 500, and Table S3: The simulation summary for the nested random effect structure with increasing number of clusters, N=5000 and Monte-Carlo size of 500.

Declaration of conflicting interests

The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.

References

  • 1.Olsen MK and Schafer JL. A two-part random-effects model for semicontinuous longitudinal data. J Am Stat Assoc 2001; 96: 730–745. [Google Scholar]
  • 2.Tooze JA, Grunwald GK and Jones RH. Analysis of repeated measures data with clumping at zero. Stat Method Med Res 2002; 11: 341–355. [DOI] [PubMed] [Google Scholar]
  • 3.Farewell V, Long D, Tom B, et al. Two-part and related regression models for longitudinal data. Annu Rev Stat Appl 2017; 4: 283–315. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Albert PS, Shih WJ, Lu SE, et al. Letter to the editor of biometrics. Biometrics 2005; 61: 879–881.16135045 [Google Scholar]
  • 5.Su L, Tom BD and Farewell VT. Bias in 2-part mixed models for longitudinal semicontinuous data. Biostatistics 2009; 10: 374–389. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Liu L, Ma JZ and Johnson BA. A multi-level two-part random effects model, with application to an alcohol-dependence study. Stat Med 2008; 27: 3528–3539. [DOI] [PubMed] [Google Scholar]
  • 7.Zhang M, Strawderman RL, Cowen ME, et al. Bayesian inference for a two-part hierarchical model: an application to profiling providers in managed health care. J Am Stat Assoc 2006; 101: 934–945. [Google Scholar]
  • 8.Neelon B, O’Malley AJ and Normand SLT. A bayesian two-part latent class model for longitudinal medical expenditure data: assessing the impact of mental health and substance abuse parity. Biometrics 2011; 67: 280–289. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Xing D, Huang Y, Chen H, et al. Bayesian inference for two-part mixed-effects model using skew distributions, with application to longitudinal semicontinuous alcohol data. Stat Method Med Res 2017; 26: 1838–1853. [DOI] [PubMed] [Google Scholar]
  • 10.Barrett J, Diggle P, Henderson R, et al. Joint modelling of repeated measurements and time-to-event outcomes: flexible model specification and exact likelihood inference. J R Stat Soc Ser B Stat Meth 2015; 77: 131–148. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Yiu S and Tom BD. Two-part models with stochastic processes for modelling longitudinal semicontinuous data: computationally efficient inference and modelling the overall marginal mean. Stat Method Med Res 2018; 27: 3679–3695. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Wu MC and Bailey K. Analysing changes in the presence of informative right censoring caused by death and withdrawal. Stat Med 1988; 7: 337–346. [DOI] [PubMed] [Google Scholar]
  • 13.Albert PS and Shih JH. An approach for jointly modeling multivariate longitudinal measurements and discrete time-to-event data. Ann Appl Stat 2010; 4: 1517. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Pinheiro JC and Bates DM. Approximations to the log-likelihood function in the nonlinear mixed-effects model. J Comp Graph Stat 1995; 4: 12–35. [Google Scholar]
  • 15.Wu MC and Follmann DA. Use of summary measures to adjust for informative missingness in repeated measures data with random effects. Biometrics 1999; 55: 75–84. [DOI] [PubMed] [Google Scholar]
  • 16.Little RJ and Rubin DB. Bayes and multiple imputation. In: Statistical analysis with missing data. New York, NY: Wiley. 2002, pp.200–220. [Google Scholar]
  • 17.Nansel TR, Laffel LM, Haynie DL, et al. Improving dietary quality in youth with type 1 diabetes: randomized clinical trialof a family-based behavioral intervention. Int J Behav Nutr Phys Act 2015; 12: 58. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Carlin JB, Li N, Greenwood P, et al. Tools for analyzing multiple imputed datasets. Stata J 2003; 3: 226–244. [Google Scholar]
  • 19.Elmi AF, Grantz KL and Albert PS. An approximate joint model for multiple paired longitudinal outcomes and time-to-event data. Biometrics 2018; 74: 1112–1119. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Albert PS. Shared random parameter models: a legacy of the biostatistics program at the national heart lung and blood institute. Stat Med 2019; 38: 501–511. [DOI] [PubMed] [Google Scholar]
  • 21.Fieuws S and Verbeke G. Pairwise fitting of mixed models for the joint modeling of multivariate longitudinal profiles. Biometrics 2006; 62: 424–431. [DOI] [PubMed] [Google Scholar]

Associated Data

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

Supplementary Materials

supplementary materials

RESOURCES