- Research article
- Open Access
- Open Peer Review
Comparison of generalized estimating equations and quadratic inference functions using data from the National Longitudinal Survey of Children and Youth (NLSCY) database
BMC Medical Research Methodologyvolume 8, Article number: 28 (2008)
The generalized estimating equations (GEE) technique is often used in longitudinal data modeling, where investigators are interested in population-averaged effects of covariates on responses of interest. GEE involves specifying a model relating covariates to outcomes and a plausible correlation structure between responses at different time periods. While GEE parameter estimates are consistent irrespective of the true underlying correlation structure, the method has some limitations that include challenges with model selection due to lack of absolute goodness-of-fit tests to aid comparisons among several plausible models. The quadratic inference functions (QIF) method extends the capabilities of GEE, while also addressing some GEE limitations.
We conducted a comparative study between GEE and QIF via an illustrative example, using data from the "National Longitudinal Survey of Children and Youth (NLSCY)" database. The NLSCY dataset consists of long-term, population based survey data collected since 1994, and is designed to evaluate the determinants of developmental outcomes in Canadian children. We modeled the relationship between hyperactivity-inattention and gender, age, family functioning, maternal depression symptoms, household income adequacy, maternal immigration status and maternal educational level using GEE and QIF. Basis for comparison include: (1) ease of model selection; (2) sensitivity of results to different working correlation matrices; and (3) efficiency of parameter estimates.
The sample included 795, 858 respondents (50.3% male; 12% immigrant; 6% from dysfunctional families). QIF analysis reveals that gender (male) (odds ratio [OR] = 1.73; 95% confidence interval [CI] = 1.10 to 2.71), family dysfunctional (OR = 2.84, 95% CI of 1.58 to 5.11), and maternal depression (OR = 2.49, 95% CI of 1.60 to 2.60) are significantly associated with higher odds of hyperactivity-inattention. The results remained robust under GEE modeling. Model selection was facilitated in QIF using a goodness-of-fit statistic. Overall, estimates from QIF were more efficient than those from GEE using AR (1) and Exchangeable working correlation matrices (Relative efficiency = 1.1117; 1.3082 respectively).
QIF is useful for model selection and provides more efficient parameter estimates than GEE. QIF can help investigators obtain more reliable results when used in conjunction with GEE.
Investigators often encounter situations in which plausible statistical models for observed data require an assumption of correlation between successive measurements on the same subjects (longitudinal data) or related subjects (clustered data) enrolled in clinical studies. Statistical models that fail to account for correlation between repeated measures are likely to produce invalid inferences since parameter estimates may not be consistent and standard error estimates may be wrong .
Statistical methods appropriate for analyzing repeated measures include generalized estimating equations (GEE) and multi-level/mixed-linear models . GEE involves specifying a marginal mean model relating the response to the covariates and a plausible correlation structure between responses at different time periods (or within each cluster). Parameter estimates thus obtained are consistent irrespective of the underlying true correlation structure, but may be inefficient when the correlation structure is misspecified . GEE parameter estimates are also sensitive to outliers [2, 3].
Summary statistics derived from the likelihood ratio test can be used to check model adequacy in cross-sectional data analyses [1, 4, 5]. For mixed linear models, the process is often not straightforward due to the complexities involved . Model selection is difficult in GEE due to lack of an absolute goodness-of-fit test to help in choosing the "best" model among several plausible models [4, 5, 7]. For repeated binary responses, Barnhart and Williamson  and Horton et al proposed ad-hoc goodness-of-fit statistics which are extensions of the Hosmer and Lemeshow method for cross-sectional logistic regression models [4, 5, 8].
The quadratic inference functions (QIF) – introduced by Qu et al  – extends the capabilities of the GEE. QIF provides a direct measure of goodness-of-fit that compares the fitted model to a saturated model, gives efficient and consistent parameter estimates (irrespective of the underlying correlation structure), and yields inferences that are robust to outliers[3, 9]. QIF is a relatively new methodology. A literature search in PUBMED yielded only one study that used QIF for statistical analysis .
The aims of this paper are: (1) to illustrate the use of QIF for longitudinal or clustered data analyses; and (2) to compare the results obtained from GEE and QIF using data from the National Longitudinal Survey of Children and Youth (NLSCY) database. In these illustrations we model the relationship between a binary response variable (parent's reports of child hyperactivity-inattention) and covariates such as child's age and gender, family functioning, maternal depression symptoms, household income adequacy, maternal immigration status and maternal educational level.
Overview of GEE
Marginal models are often fitted using the GEE methodology, whereby the relationship between the response and covariates is modeled separately from the correlation between repeated measurements on the same individual .
The correlation between successive measurements is modeled explicitly by assuming a "correlation structure" or "working correlation matrix". The assumption of a correlation structure facilitates the estimation of model parameters . Examples of working correlation matrices include: exchangeable, auto-regressive of order 1 (AR(1)), unstructured, and independent correlation structures. For binary data, correlation is often measured in terms of odds ratios . A plausible working correlation matrix can be chosen using a visual tool known as the lorelogram .
Details of the correlation structure and response-covariate relationship are included in an expression known as the quasi-likelihood function, which is iteratively solved to obtain parameter estimates. Estimates obtained from the quasi-likelihood function are efficient when the true correlation matrix is closely approximated '[see Additional file 1]'. In other words, the large-sample variance of the estimator reaches a Cramer-Rao type lower bound '[see Additional file 2]'.
The pros and cons of using GEE are summarized in Table 1.
Overview of QIF
The QIF methodology overcomes some of the disadvantages of GEE highlighted in Table 1. It is largely based on observing that the inverse of many commonly used working correlation matrices can be expressed as a linear combination of unknown constants and known matrices '[see Additional file 2]'. This linear expression is substituted back into the quasi-likelihood function from which an extended score vector  is obtained. Qu et al  used the generalized method of moments  to obtain an objective function consisting of the extended score vector and its inverse variance matrix. This function is termed the "Quadratic Inference Function", which is minimized through a numerical algorithm to obtain parameter estimates '[see Additional file 2]'.
The estimates obtained from QIF are as efficient as those from the quasi-likelihood function provided the true correlation structure is specified. Further, the estimates obtained from QIF are still efficient, even if the correlation structure is misspecified . This is confirmed from simulation results obtained by Qu et al  comparing the simulated relative efficiency (SRE) of parameter estimators from GEE and QIF:
Given a true correlation structure of AR(1) and a correlation of 0.7 between repeated observations, Qu et al  obtained an SRE of 1.34 (QIF more efficient) if the working correlation structure is misspecified as "equicorrelated". An SRE of 2.07 (QIF more efficient) was obtained if a true equicorrelated structure is misspecified as AR(1). SRE is in the range 0.97–0.99 if correlation structure is correctly specified, meaning GEE and QIF are similarly efficient . The reliability of these simulation results is assessed in this paper.
The pros and cons of using QIF are listed in Table 1.
The NLSCY dataset
The NLSCY dataset consists of long-term, population-based survey data collected since 1994, and is designed to evaluate the determinants of developmental outcomes of Canadian children and youth. Each two-year period from 1994 constitutes a cycle .
For this paper, we selected a sub-sample of children meeting the inclusion criteria outlined below.
Child must be four or five years old in Cycle 1 of the survey. Child must also have complete data (Cycles 1 to 4) on the following variables: hyperactivity-inattention, age, gender, family functioning, maternal (or person most knowledgeable) depression, household income adequacy, maternal immigration status and maternal educational level. The "person most knowledgeable" (PMK) is usually the child's mother .
From a total of 2,090 (weighted sample of 795,856) four to five year olds in Cycle 1, a sub-sample of 1,052 (weighted sample of 384,306) children met the inclusion criteria outlined above. A flowchart of this process is shown in Figure 1.
a) Response variable
The outcome of interest is hyperactivity-inattention (HI). HI is a factor measured on a 3-point Likert Scale  designed to assess different constructs of a child's behavior using information obtained from the PMK (or mother) . The HI scale "identifies children who: cannot sit still, are restless, and easily distracted; have trouble sticking to any activity; fidget; cannot concentrate, cannot pay attention for long; are impulsive; have difficulty waiting their turn in games or groups; and cannot settle to do anything for more than a few moments" . The scale is reliable with a Cronbach's alpha of 0.84 . The variable – having a range of possible values between 0 and 16 – was dichotomized using specifications obtained from Offord and Lipman:
b) Independent variables
i. Child's gender: Male (1) or Female (0);
ii. Child's age (yr);
iii. Maternal immigration status (MIS): A parent who reported "age at immigration" was considered an immigrant (1 = immigrant, 0 = non-immigrant);
iv. Maternal education level (ME): Maternal education level was categorized as (1 = those having university/college degree, 0 = those without university/college degree);
v. Maternal depression (MD): Maternal symptoms of depression were measured using a shortened version of the Center for Epidemiological Depression Scale . MD score ranges between 0 and 36. Scores higher than 12 were coded as (1 = moderate to severe maternal symptoms of depression), while scores 12 and below were coded as (0 = no maternal symptoms of depression). This dichotomy is consistent with previous work by To et al . Cronbach's alpha value for this scale is 0.82 ;
vi. Family functioning (FF): Family functioning was measured using the 12-item general functioning sub-scale of the McMaster Family Assessment Device [20, 21]. This scale measures various aspects of family functioning like problem solving, communications, roles, affective involvement, affective responsiveness and behavior control . FF score ranges between 0 and 36. Families with scores greater than 14 were grouped as (1 = dysfunctional) while those with scores 14 and below were grouped as (0 = non dysfunctional), consistent with To et al . Cronbach's alpha value for this scale is 0.88 ;
vii. Income adequacy (IA): Income adequacy reflects the impact of household size on family income, as defined by Statistics Canada . Using a precedence from To et al , IA was dichotomized by combining the lowest and lower income adequacy categories to indicate (0 = low income adequacy), while the middle, upper middle and highest income adequacy groups were combined to indicate (1 = high income adequacy) .
c) Adjusted Cycle 4 longitudinal weight
The NLSCY uses a "stratified, multi-stage probability sample" survey design in which each child represents several children in the population, who are not part of the survey . The longitudinal weight reflects the number of children each child represents. It is calculated as the inverse of the child's probability of selection into the survey . The Cycle 4 longitudinal weights are appropriate for this analysis since these weights are adjusted for population changes between Cycle 1 and Cycle 4. We further adjusted the Cycle 4 longitudinal weight for each child in the sub-sample to reflect the approximate population of four to five year olds (i.e. adjusted total weight = 795,856). This was done to enhance the generalizability of results presented in this paper .
Summary statistics are expressed as count (percent). Hyperactivity-inattention is expressed as a function of time, gender, family functioning, maternal depression, maternal immigration status, household income adequacy and maternal educational level using marginal logistic regression models in GEE and QIF (Equations 8 and 9). The "adjusted Cycle 4 longitudinal weight" is included as a weight variable in the GEE and QIF models to account for study design.
Logit(μ ij ) = α + β1 t j + β2 gender + β3 FF + β4 MD + β5 MIS + β6 ME + β7 IA
The goodness-of-fit (GOF) test in QIF is used for model assessment. We compared the fit of different models using the Q statistic  and its extensions such as AIC (Akaike Information Criterion) and BIC (Bayes Information Criterion). Smaller Qs, AICs and BICs indicate better fits [1, 3].
QIF and GEE are compared with respect to relative efficiency of parameter estimates. We also illustrate how to use the GOF statistic from QIF in selecting an optimal working correlation matrix between AR(1) and exchangeable correlation structures. All statistical tests were conducted at 5% level of significance.
Graphs and analyses results were obtained using SAS© (Version 9.1), SPSS© (Version 14.0) and R (Version 2.5.1).
Demographic characteristics (survey-weighted) and data exploration
Table 2 represents the weighted frequencies of the baseline and follow-up characteristics of the study population. Figure 2 shows the estimated proportion of hyperactive-inattention among the selected cohort between 1994 and 2000. The graph is not linear. Hyperactivity-inattention appeared to diminish as children in this cohort grew older.
Figure 3 is a lorelogram which measures the correlation between repeated binary outcomes using odds ratios . The x-axis (index) is the time-lag between two measurements. From Figure 3, correlation appears to decrease with increasing lag between repeated responses, thus an AR(1) correlation structure may be appropriate for describing the relationship between hyperactivity-inattention scores at different cycles.
Model selection using QIF
Results in Table 3 were obtained from fitting Model (8) in GEE and QIF, and assuming an AR(1) correlation structure. GEE and QIF produce different conclusions for maternal education level and family functioning, although the odds ratios are of similar magnitudes. Figure 2 shows that a quadratic term may be required to improve model fit, but GEE does not provide a goodness-of-fit test with, for instance, the SAS© implementation.
In addition to the results obtained in Table 3, QIF – in contrast to GEE – provides direct measures of goodness-of-fit (GOF) with SAS© software output to assess model adequacy . QIF facilitates comparison among different plausible models using the Q statistic . The Q statistic is obtained from the asymptotic limiting distribution of the quadratic inference function (QIF). Just like the likelihood ratio test, it enables one to test the null hypothesis that a simpler model is just as predictive as a saturated model. The difference between QIF (for saturated model) and QIF (for simpler model) is asymptotically chi-squared under the null hypothesis irrespective of the underlying true correlation structure. This difference is asymptotically non-central chi-squared under the local alternative hypothesis . The mathematical proof and simulation results are found in Qu et al . The Q statistic has properties similar to the likelihood ratio test used for generalized linear models . Thus, extensions of the Q statistic such as AIC (Akaike Information Criterion) and BIC (Bayes Information Criterion) can also be used to compare the fit of different models. In comparison to a saturated model, a fitted model is considered inadequate if the p-value for the goodness-of-fit test is less than 0.05 .
From Table 4, GOF tests show that Model (8) is inadequate to describe the observed data (GOF statistic Q = 22.82, p = 0.0066; AIC = 40.82, BIC = 85.45). Considering the non-linearity of Figure 2, a quadratic term was added to Model (8) to obtain Model (9). Model (9) appears to provide a better fit (GOF statistic Q = 11.74; p = 0.3027; AIC = 31.74, 81.33).
Table 5 shows parameter estimates for GEE and QIF using Model (9). The quadratic term (t2) is statistically significant in both GEE and QIF (p < 0.05). Also, the results from GEE and QIF appear to be in agreement in Model 9, suggesting that the results are robust. Next we provide the clinical implication of the results.
Explanation of results from Table 5(QIF)
✔ Male children have significantly higher odds of developing hyperactivity-inattention than their female counterparts (OR = 1.73, 95% CI of 1.10 to 2.71).
✔ Children from dysfunctional families have significantly higher odds of developing hyperactivity-inattention than those from non-dysfunctional families (OR = 2.84, 95 CI of 1.58 to 5.11).
✔ Children of moderate to severely depressed mothers have significantly higher odds of developing hyperactivity-inattention than those whose mothers are not depressed (OR = 2.49, 95% CI of 1.60 to 2.60).
✔ Children of immigrants, children with mothers having university/college degree and children in the high income adequacy group have lower estimated odds of developing hyperactivity-inattention (OR = 0.69, 95% CI of 0.35 to 1.37; OR = 0.59, 95% CI of 0.34 to 1.02; and OR = 0.95, 95% CI of 0.58 to 1.57 respectively). The odds ratios in these three situations are not statistically significant.
Choice of correlation structure in QIF
QIF facilitates an optimal choice among the available correlation structures. Assuming Model (9), Table 6 shows the results for AR(1) and exchangeable correlation structures. The results for both correlation structures are similar, but AR(1) is the more appropriate working correlation matrix from the goodness-of-fit tests in Table 7. This is also supported by the lorelogram in Figure 3.
GEE Versus QIF (Relative efficiency)
We compared the efficiency of parameter estimates from QIF and GEE using:
provided the estimates are unbiased estimates of the parameters of interest . This definition of RE generalizes to situations in which there are multiple parameters to be estimated. Thus from Table 8 with AR(1) correlation structure, one obtains
RE = 1.1117.
Using exchangeable working correlation, RE is 1.3082 (see Table 9). This implies that QIF parameter estimates are more efficient than GEE estimates assuming AR(1) or exchangeable correlation structures. This is consistent with the simulation results obtained by Qu et al .
We have illustrated some desirable features of the QIF in modeling longitudinal or clustered data. QIF provides a direct goodness-of-fit statistic that follows a chi-squared distribution irrespective of the underlying true correlation structure . The goodness-of-fit statistic from QIF also facilitates an optimal selection of correlation structure among several plausible choices. It would be interesting to compare the goodness-of-fit tests provided by QIF to those provided by Barnhart and Williamson  and Horton et al  in GEE. Overall, we obtained similar parameter estimates from GEE and QIF analyses of the NLSCY data. Our results were consistent with the findings by Qu et al  showing the greater efficiency of parameter estimates from QIF in comparison to GEE. We could not verify the robustness of QIF to the presence of outliers due to strict ethical guidelines regarding the use of the NLSCY dataset. The risk of disclosure of sensitive data may be higher when outliers are selected for sensitivity analysis.
One of the strengths of this study is the longitudinal nature of the NLSCY dataset. However, we caution the readers in interpreting the results – dichotomizing the primary outcome hyperactivity-inattention score may result in loss of information. Understanding the factors that are predictive of hyperactivity-inattention will help stakeholders develop programs to mitigate the effects of such factors, with the aim of raising children that are healthy members of the society.
The use of "complete case analysis" in the illustrative example is a limitation of this study. QIF – like standard GEE models – requires the assumption that missing values are "missing-completely-at-random" (MCAR) for complete case analysis . There are methods available for assessing this assumption or incorporating missingness into statistical models, but missing value analyses was not the aim of this project.
The QIF methodology is relatively new and not available in any statistical software as a built-in routine. The SAS macro to carry out the procedure is available for download, but users without adequate programming skills may find the process a bit difficult. Also, the QIF macro can only handle three correlation structures at the moment. More research is being done to incorporate other commonly used structures into the methodology .
QIF is useful for model selection and provides more efficient parameter estimates than GEE. QIF can help investigators obtain more reliable results when used in conjunction with GEE. The QIF methodology may eventually become a replacement for GEE due to its desirable characteristics as highlighted in this paper.
Dobson A: An Introduction to Generalized Linear Models. 2002, Florida: Chapman & Hall/CRC
Diggle PJ, Heagerty P, Liang K, Zeger SL: Analysis of Longitudinal Data. 2002, Oxford: Oxford University Press, Second
Qu A, Lindsay B, Li B: Improving generalized estimating equations using quadratic inference function. Biometrika. 2000, 87: 823-836. 10.1093/biomet/87.4.823.
Horton NJ, Bebchuk JD, Jones CL, Lipsitz SR, Catalano PJ, Zahner GE, Fitzmaurice GM: Goodness-of-fit for GEE: An example with mental health service utilization. Stat Med. 1999, 18 (2): 213-222. 10.1002/(SICI)1097-0258(19990130)18:2<213::AID-SIM999>3.0.CO;2-E.
Barnhart HX, Williamson JM: Goodness-of-fit tests for GEE modeling with binary responses. Biometrics. 1998, 54 (2): 720-729. 10.2307/3109778.
Schabenberger O: Mixed model influence diagnostics. Proceedings of the twenty-Ninth Annual SAS Users Group International Conference: May 9–12, 2004; Montreal. 2004, Cary, NC: SAS Institute Inc, 189-29.
Heagerty PJ, Zeger SL: Marginalized multilevel models and likelihood inference. Stat Sci. 2000, 15: 1-26.
Hosmer DW, Lemeshow S: Goodness of fit tests for the multiple logistic regression model. Commun Stat. 1980, A9: 1043-1069.
Qu A, Song P: Assessing robustness of generalized estimating equations and quadratic inference functions. Biometrika. 2004, 91: 447-459. 10.1093/biomet/91.2.447.
Qu A, Li R: Quadratic inference functions for varying-coefficient models with longitudinal data. Biometrics. 2006, 62 (2): 379-391. 10.1111/j.1541-0420.2005.00490.x.
Heagerty PJ, Zeger SL: Lorelogram: A regression approach to exploring dependence in longitudinal categorical responses. JASA. 1998, 93: 150-162.
Hansen L: Large sample properties of generalized method of moments estimators. Econometrica. 1982, 50: 1029-1054. 10.2307/1912775.
Statistics Canada and Human Resources Development Canada: Microdata user guide: National longitudinal survey of children and youth. Ottawa. 2002
Likert R: A technique for the measurement of attitudes. Arch Psychol. 1932, 140: 1-55.
Understanding the Early Years: An Update of Early Childhood Development Results in Four Canadian Communities. [http://www.hrsdc.gc.ca/en/cs/sp/sdc/pkrf/publications/nlscy/uey/2005-072005/page05.shtml]
Multi-Level Effects on Behaviour Outcomes in Canadian Children. [http://www.hrsdc.gc.ca/en/cs/sp/sdc/pkrf/publications/research/2001-000124/page07.shtml]
Offord DR, Lipman EL: Emotional and behavioural problems. Growing Up in Canada: National Longitudinal Survey of Children and Youth. 1996, Ottawa: Statistics Canada and Human Resources Canada, 119-126.
Radloff LS: The CES-D scale: A self report depression scale for research in the general population. App Psychol Meas. 1977, 1: 385-401. 10.1177/014662167700100306.
To T, Guttmann A, Dick PT, Rosenfield JD, Parkin PC, Tassoudji M, Vydykhan TN, Kao H, Harris JK: Risk markers for poor developmental attainment in young children. Arch Pediatr Adolesc Med. 2004, 158: 643-649. 10.1001/archpedi.158.7.643.
Epstein NB, Baldwin LM, Bishop DS: The McMaster family assessment device. J Marital Fam Ther. 1983, 9: 171-180. 10.1111/j.1752-0606.1983.tb01497.x.
Epstein NB, Bishop DS, Levin S: The McMaster family assessment device. J Marital Fam Ther. 1978, 9: 19-23. 10.1111/j.1752-0606.1978.tb00537.x.
Casella G, Berger RL: Statistical Inference. 2002, California: Duxbury Press, Second
Kerr D, Beaujot R: Family relations, low income, and child outcomes: A comparison of Canadian children in intact-, step-, and lone-parent families. IJCS. 2002, 43: 134-152.
Willms JD: Research findings bearing on Canadian social policy. Vulnerable Children: Findings from Canada's National Longitudinal Survey of Children and Youth. Edited by: Willms JD. 2002, Edmonton Alberta: The University of Alberta Press, 331-358.
Mahoney D: Maternal depression predicts ADHD in kids. Clin Psychiatry News. 2007, 37: 21-
St. Sauver JL, Barbaresi WJ, Katusic SK, Colligan RC, Weaver AL, Jacobsen SL: Early life risk factors for attention-Deficit/Hyperactivity disorder: A population-based cohort study. Mayo Clin Proc. 2004, 79: 1124-1131.
Kaplan BJ, Crawford SG, Fisher GC, Dewey DM: Family dysfunction is more associated with ADHD than with general school problems. J Atten Disord. 1998, 2: 209-216. 10.1177/108705479800200401.
SAS macro QIF manual 2007: Version 0.2. [http://www.math.uwaterloo.ca/~song/QIFmanual.pdf]
Small CG, Wang J, Yang Z: Eliminating multiple root problems in estimation. Stat Sci. 2000, 15: 313-341. 10.1214/ss/1009212672.
Little RJ, Rubin DB: Statistical Analysis with Missing Data. 1987, New York: J. Wiley & Sons
The pre-publication history for this paper can be accessed here:http://www.biomedcentral.com/1471-2288/8/28/prepub
Dr Lehana Thabane is a clinical trials mentor for the Canadian Institute of Health Research. We are indebted to Statistics Canada for providing access to the NLSCY database. Dr Gina Browne assisted with the application for access to the NLSCY database. The SAS macro for the QIF methodology – without which this project would have been a daunting task – was provided by Dr Peter Song, and is available for online . We thank the reviewers for helpful comments that led to improvements in the manuscript.
The authors declare that they have no competing interests.
AO and LT conceived the study. LT, NA–D and DB participated in the design of the study. Data acquisition and cleaning were done by AO and DB. AO conducted data analysis and wrote initial draft of manuscript. Results of data analysis were interpreted by AO and LT. NA–D, LT and DB reviewed and revised the manuscript for important statistical and subject-matter content. All authors read and approved the final manuscript.