Skip to main content

Generalized Estimating Equations (GEE): Which Pill Clears Up the Toenail?

Generalized estimating equations in R, by hand and with geepack, on a randomized trial of two treatments with 294 patients seen up to seven times: correlated yes-or-no outcomes, the working correlation and the sandwich, population-averaged effects, independence, exchangeable and AR(1) structures with the QIC, GEE against a mixed model and why their coefficients differ, missing visits and inverse probability weights, what happens with few clusters, and APA reporting.

The question: the same people, again and again

Fungus under a toenail is hard to get rid of. In a randomized trial, 294 patients took one of two drugs, terbinafine or itraconazole, for three months, and were seen up to seven times in about a year (De Backer et al., 1998). At each visit the doctor noted whether the nail was badly affected or not. Which drug works better?

The outcome is yes or no, so we think of logistic regression. But there are about six observations of each patient, and they are far from independent: a bad nail is usually still bad at the next visit. Logistic regression would count 1,908 observations as 1,908 patients, and its standard errors would be wrong.

There are two families of solutions. Mixed models give each patient a random effect (see multilevel models). Generalized estimating equations (GEE; Liang & Zeger, 1986) do not model the patients at all. They model the average of the population at each time, and repair the standard errors afterwards. For yes-or-no outcomes the two give different coefficients, which answer different questions. This page explains which is which.

Code
library(geepack)    # geeglm()
library(lme4)       # glmer(): the mixed model, for comparison
library(ggplot2)

arm_colours <- c(itraconazole = "#eb6834", terbinafine = "#2a78d6")

# number formats for the text
f1   <- function(x) formatC(x, format = "f", digits = 1, big.mark = ",")
f2   <- function(x) formatC(x, format = "f", digits = 2, big.mark = ",")
f3   <- function(x) formatC(x, format = "f", digits = 3, big.mark = ",")
# no leading zero
nz <- function(x, d = 2) sub("^(-?)0", "\\1", formatC(x, format = "f", digits = d))
pval <- function(p) if (p < .001) "< .001" else paste("=", nz(p, 3))
num  <- function(x) trimws(format(x, big.mark = ","))
pct  <- function(x, d = 0) paste0(formatC(100 * x, format = "f", digits = d), "%")

1. The data

The data are in the R package HSAUR2. We read them from its copy on GitHub:

Code
path <- tempfile(fileext = ".rda")
download.file(
  "https://raw.githubusercontent.com/cran/HSAUR2/master/data/toenail.rda",
  path,
  mode = "wb",
  quiet = TRUE
)
load(path)
nail <- with(
  toenail,
  data.frame(
    id = as.integer(patientID),
    bad = as.integer(outcome == "moderate or severe"),
    terb = as.integer(treatment == "terbinafine"),
    month = time,
    visit = visit
  )
)
nail <- nail[order(nail$id, nail$visit), ] # geeglm() needs the rows of a cluster together
c(observations = nrow(nail), patients = length(unique(nail$id)))
observations     patients 
        1908          294 
Code
table(visits_per_patient = table(nail$id))
visits_per_patient
  1   2   3   4   5   6   7 
  5   3   7   6  10  39 224 

bad is 1 if the nail was moderately or severely affected, terb is 1 for terbinafine, month the time since the start of the treatment. 224 of the 294 patients came to all seven visits.


2. Look at the data

Code
prop <- aggregate(cbind(bad, month) ~ visit + terb, data = nail, FUN = mean)
prop$n <- aggregate(bad ~ visit + terb, data = nail, FUN = length)$bad
prop$drug <- ifelse(prop$terb == 1, "terbinafine", "itraconazole")
prop$se <- sqrt(prop$bad * (1 - prop$bad) / prop$n)
ggplot(prop, aes(month, bad, colour = drug)) +
  geom_line(linewidth = 0.9) +
  geom_pointrange(aes(ymin = pmax(bad - 1.96 * se, 0), ymax = bad + 1.96 * se)) +
  scale_colour_manual(values = arm_colours, name = NULL) +
  scale_y_continuous(labels = function(v) paste0(100 * v, "%"), limits = c(0, NA)) +
  labs(
    title = "Share of patients with a badly affected nail",
    x = "months since the start",
    y = NULL
  ) +
  theme_bw() +
  theme(legend.position = "bottom")

Plot: 2. Look at the data

Code
wide <- reshape(
  nail[, c("id", "visit", "bad")],
  idvar = "id",
  timevar = "visit",
  direction = "wide"
)
R_obs <- cor(wide[, -1], use = "pairwise.complete.obs"); dimnames(R_obs) <- list(1:7, 1:7)
round(R_obs, 2)
     1    2    3    4    5    6    7
1 1.00 0.87 0.68 0.51 0.32 0.20 0.13
2 0.87 1.00 0.78 0.60 0.38 0.23 0.20
3 0.68 0.78 1.00 0.76 0.40 0.22 0.18
4 0.51 0.60 0.76 1.00 0.50 0.31 0.26
5 0.32 0.38 0.40 0.50 1.00 0.70 0.49
6 0.20 0.23 0.22 0.31 0.70 1.00 0.71
7 0.13 0.20 0.18 0.26 0.49 0.71 1.00
Code
same <- mean(nail$bad[-1][diff(nail$id) == 0] == nail$bad[-nrow(nail)][diff(nail$id) == 0])
same
[1] 0.913259

Both drugs work: the share of bad nails falls from 37% to 5–10%. Terbinafine seems a little faster after the first months. The correlations between the visits of the same patients are high for neighboring visits (up to 0.87) and lower for distant ones. In 91% of the cases the status is the same as at the visit before.


3. The model step by step, with formulas

Step 1: a model for the mean, and nothing more

For patient \(i\) at visit \(j\):

\[\log\frac{\mu_{ij}}{1 - \mu_{ij}} = \beta_0 + \beta_1\,\text{terb}_i + \beta_2\,\text{month}_{ij} + \beta_3\,\text{terb}_i \times \text{month}_{ij}, \qquad \mu_{ij} = P(\text{bad}_{ij} = 1)\]

This is the marginal mean: the share of bad nails among all patients with these values. We say nothing about single patients.

Step 2: the estimating equations

Logistic regression solves \(\sum_{ij} x_{ij}(y_{ij} - \mu_{ij}) = 0\). GEE generalizes it. Let \(V_i\) be a guess of the covariance matrix of the observations of patient \(i\), and \(D_i\) the derivatives of the means:

\[\sum_i D_i^\top V_i^{-1} (y_i - \mu_i) = 0, \qquad V_i = \phi\, A_i^{1/2} R(\alpha) A_i^{1/2}\]

\(A_i\) has the binomial variances \(\mu(1-\mu)\) on the diagonal. \(R(\alpha)\) is the working correlation, a simple pattern that is chosen by the analyst.

Working correlation Assumes
independence no correlation: the equations of logistic regression
exchangeable the same correlation \(\alpha\) for every pair of visits
AR(1) \(\alpha\) for neighbors, \(\alpha^2\) two visits apart, and so on
unstructured a free correlation for every pair

Step 3: the great advantage

The estimate \(\hat\beta\) is consistent even if the working correlation is wrong, as long as the model for the mean is right. A better guess makes it more precise, that is all. (If there are missing visits, there is a condition. See section 6.)

Step 4: the sandwich

The variance is not taken from the working correlation, which may be wrong, but from how much the patients really differ from the model:

\[\widehat{\text{Var}}(\hat\beta) = B^{-1} M B^{-1}, \qquad B = \sum_i D_i^\top V_i^{-1} D_i, \qquad M = \sum_i D_i^\top V_i^{-1} e_i e_i^\top V_i^{-1} D_i\]

The meat \(M\) contains the products of the residuals of the same patient, \(e_i e_i^\top\), so any correlation is in it. By hand, with independence:

Code
# independence: ordinary logistic regression
glm_fit <- glm(bad ~ terb * month, family = binomial, data = nail)
X <- model.matrix(glm_fit); mu <- fitted(glm_fit); e <- nail$bad - mu
B <- crossprod(X, X * mu * (1 - mu))
scores <- rowsum(X * e, nail$id) # one row per patient: the sum over the visits
V_hand <- solve(B) %*% crossprod(scores) %*% solve(B)
gee_ind <- geeglm(
  bad ~ terb * month,
  id = id,
  waves = visit,
  data = nail,
  family = binomial,
  corstr = "independence"
)
rbind(
  by_hand = sqrt(diag(V_hand)),
  geeglm = sqrt(diag(vcov(gee_ind))),
  naive_glm = sqrt(diag(vcov(glm_fit)))
)
          (Intercept)      terb      month terb:month
by_hand     0.1711708 0.2508479 0.02916250 0.05211553
geeglm      0.1711708 0.2508479 0.02916250 0.05211553
naive_glm   0.1089628 0.1561463 0.02361993 0.03752346

The estimates of GEE with independence are those of logistic regression. The standard errors are not: that of the intercept is 1.6 times larger.


4. Fitting the model and reading the output

Code
gee_ex <- geeglm(
  bad ~ terb * month,
  id = id,
  waves = visit,
  data = nail,
  family = binomial,
  corstr = "exchangeable"
)
gee_ar <- geeglm(
  bad ~ terb * month,
  id = id,
  waves = visit,
  data = nail,
  family = binomial,
  corstr = "ar1"
)
summary(gee_ex)

Call:
geeglm(formula = bad ~ terb * month, family = binomial, data = nail, 
    id = id, waves = visit, corstr = "exchangeable")

 Coefficients:
            Estimate  Std.err   Wald Pr(>|W|)    
(Intercept) -0.58192  0.17206 11.439 0.000719 ***
terb         0.00718  0.25949  0.001 0.977924    
month       -0.17128  0.03000 32.596 1.13e-08 ***
terb:month  -0.07773  0.05411  2.064 0.150862    
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Correlation structure = exchangeable 
Estimated Scale Parameters:

            Estimate Std.err
(Intercept)    1.088  0.5013
  Link = identity 

Estimated Correlation Parameters:
      Estimate Std.err
alpha   0.4218  0.2119
Number of clusters:   294  Maximum cluster size: 7 
Code
s <- as.matrix(coef(summary(gee_ex)))
or <- exp(s[, 1])
low <- exp(s[, 1] - 1.96 * s[, 2])
high <- exp(s[, 1] + 1.96 * s[, 2])
  • month: odds ratio \(e^{-0.171}\) = 0.84 per month, 95% CI [0.79, 0.89]: with itraconazole the odds of a bad nail, in the population, fall by 16% per month.
  • terb: at month 0 the groups are alike (1.01), as they should be after randomization.
  • terb:month: 0.93, [0.83, 1.03], p = .151: with terbinafine the odds fall 7% more per month. The direction favors terbinafine, and the interval contains 1.
  • Wald and Pr(>|W|): the squared z tests, with the robust standard errors.
  • alpha = 0.42: the estimated working correlation between two visits of a patient. It is not a result, just a tool.

Which working correlation?

Code
fits <- list(independence = gee_ind, exchangeable = gee_ex, AR1 = gee_ar)
tab <- t(sapply(fits, function(m) {
  cs <- coef(summary(m))
  c(
    b = cs["terb:month", 1],
    SE_robust = cs["terb:month", 2],
    p = cs["terb:month", 4],
    QIC = QIC(m)[[1]]
  )
}))
round(rbind(tab, `naive logistic` = c(coef(summary(glm_fit))["terb:month", c(1, 2, 4)], NA)), 4)
                     b SE_robust      p  QIC
independence   -0.0672    0.0521 0.1971 1837
exchangeable   -0.0777    0.0541 0.1509 1838
AR1            -0.0881    0.0492 0.0734 1837
naive logistic -0.0672    0.0375 0.0732   NA

The estimates differ a little, the robust standard errors less. The QIC is the AIC of GEE: it compares models for the mean, and also working correlations (smaller is better). It is not a strong guide. The natural choice for visits in time is AR(1) or exchangeable; the important thing is to choose beforehand, not by the p value. (The naive logistic regression would have given p = .073.)


5. GEE or mixed model? Two different questions

A logistic mixed model gives each patient a random intercept:

Code
mixed <- glmer(bad ~ terb * month + (1 | id), data = nail, family = binomial, nAGQ = 20)
sm <- coef(summary(mixed)); sd_u <- attr(VarCorr(mixed)$id, "stddev")
round(cbind(GEE = s[, 1], mixed = sm[, 1], ratio = sm[, 1] / s[, 1]), 3)
               GEE  mixed   ratio
(Intercept) -0.582 -1.618   2.781
terb         0.007 -0.161 -22.389
month       -0.171 -0.391   2.282
terb:month  -0.078 -0.137   1.759
Code
sd_u
(Intercept) 
      4.004 
Code
c(p_GEE = s["terb:month", 4], p_mixed = sm["terb:month", 4])
  p_GEE p_mixed 
0.15086 0.04433 

The coefficients of the mixed model are 2.3 times as large. It is no error in either.

  • The mixed model coefficient is subject-specific: it compares a patient with the same patient (or with another who has the same random effect) one month later. \(e^{-0.39}\) = 0.68 per month.
  • The GEE coefficient is population-averaged: it compares the share of bad nails among all patients with that share one month later. 0.84 per month.

The random intercepts have an SD of 4.0 on the logit scale, which is enormous: some patients are almost surely bad, others almost surely fine. Average many steep S-curves that start at different places, and the average is a flat S-curve:

Code
m_grid <- seq(0, 14, by = 0.1); set.seed(121); u <- rnorm(40, 0, sd_u)
single <- do.call(
  rbind,
  lapply(seq_along(u), function(k) {
    data.frame(month = m_grid, p = plogis(sm[1, 1] + sm[3, 1] * m_grid + u[k]), patient = k)
  })
)
many <- rnorm(20000, 0, sd_u)
average <- data.frame(
  month = m_grid,
  p = sapply(m_grid, function(m) mean(plogis(sm[1, 1] + sm[3, 1] * m + many))),
  what = "average of the patients (mixed model)"
)
gee_line <- data.frame(month = m_grid, p = plogis(s[1, 1] + s[3, 1] * m_grid), what = "GEE")
ggplot(single, aes(month, p)) +
  geom_line(aes(group = patient), colour = "grey75", linewidth = 0.3) +
  geom_line(data = rbind(average, gee_line), aes(colour = what, linetype = what), linewidth = 1.1) +
  scale_colour_manual(values = c("#2a78d6", "#eb6834"), name = NULL) +
  scale_linetype_manual(values = c("solid", "dashed"), name = NULL) +
  scale_y_continuous(labels = function(v) paste0(100 * v, "%")) +
  labs(
    title = "Forty patients of the mixed model (grey), and the population (itraconazole)",
    x = "months",
    y = "probability of a bad nail"
  ) +
  theme_bw() +
  theme(legend.position = "bottom")

Curves chart – 5. GEE or mixed model? Two different questions

Code
shrink <- sqrt(1 + 0.346 * sd_u^2)
c(approximate_factor = shrink, observed_factor = sm["month", 1] / s["month", 1])
approximate_factor.(Intercept)                observed_factor 
                         2.559                          2.282 

There is an approximate rule for the factor between the two, \(\sqrt{1 + 0.346\,\sigma_u^2}\) (Zeger et al., 1988): here 2.6. With a normal outcome and an identity link the two coefficients are the same, and the question does not arise.

GEE Mixed model
Question How does the population change? (public health, policy, trials) How does a patient change? (treatment of one person)
Assumes about patients nothing a distribution of random effects
Wrong correlation estimates still right estimates may be wrong
Missing visits must not depend on the outcome (MCAR) may depend on the observed past (MAR)
Single patients no predictions predictions of the random effects
Few clusters standard errors too small better

6. Missing visits

Not all patients came to all visits. GEE needs the missing ones to be missing completely at random. Otherwise the patients who remain are a special group, and the average is an average of them. Do patients with a bad nail miss the next visit more often?

Code
# one row for every planned visit
panel <- merge(expand.grid(visit = 1:7, id = unique(nail$id)), nail, all.x = TRUE)
panel <- panel[order(panel$id, panel$visit), ]
panel$seen <- as.integer(!is.na(panel$bad))
panel$terb <- ave(panel$terb, panel$id, FUN = function(v) v[!is.na(v)][1])
last_seen <- function(v) {
  out <- rep(NA, length(v))
  for (k in seq_along(v)[-1]) {
    past <- v[1:(k - 1)]
    past <- past[!is.na(past)]
    out[k] <- if (length(past)) tail(past, 1) else NA
  }
  out
}
# the status when the patient was last seen
panel$bad_before <- ave(panel$bad, panel$id, FUN = last_seen)
later <- subset(panel, visit > 1 & !is.na(bad_before))
stay  <- glm(seen ~ factor(visit) + terb + bad_before, family = binomial, data = later)
c(planned = nrow(panel), missing = sum(panel$seen == 0))
planned missing 
   2058     150 
Code
round(coef(summary(stay))[c("terb", "bad_before"), ], 3)
           Estimate Std. Error z value Pr(>|z|)
terb          0.303      0.175   1.728    0.084
bad_before   -0.391      0.213  -1.832    0.067

150 of the 2,058 planned visits are missing. Patients whose nail was bad when they were last seen have 0.68 times the odds of being seen at a visit (p = .067). There is no clear sign that the missing visits depend on the outcome, although a test with this few missing visits proves little.

The repair for GEE is inverse probability weighting (Robins et al., 1995): each observation is weighted by one over the probability that it was made, given the past. Those who are seen although patients like them are often missing count more.

Code
later$w <- 1 / predict(stay, type = "response")
weighted <- merge(subset(panel, seen == 1), later[, c("id", "visit", "w")], all.x = TRUE)
weighted$w[is.na(weighted$w)] <- 1 # the first visits
weighted <- weighted[order(weighted$id, weighted$visit), ]
gee_w <- geeglm(
  bad ~ terb * month,
  id = id,
  data = weighted,
  weights = w,
  family = binomial,
  corstr = "independence"
)
round(
  rbind(
    unweighted = coef(summary(gee_ind))["terb:month", ],
    weighted = coef(summary(gee_w))["terb:month", ]
  ),
  4
)
           Estimate Std.err  Wald Pr(>|W|)
unweighted  -0.0672  0.0521 1.664   0.1971
weighted    -0.0666  0.0524 1.618   0.2034
Code
range(weighted$w)
[1] 1.000 1.333

The weights are between 1.00 and 1.33, and the estimate hardly moves: -0.0666 instead of -0.0672. (The weights are used with independence, for which the theory is clean. They assume that whether a patient is seen depends only on the drug, the visit and the last status.)


7. Few clusters

The sandwich is a large-sample method, and the sample size is the number of clusters. With few, the robust standard errors are too small. An experiment: no effect of treatment at all, clusters of 6 observations with a strong correlation, and the test at 5%.

Code
set.seed(122)
false_positive <- function(n_clusters, reps = 400) {
  mean(
    replicate(reps, {
      d <- data.frame(
        id = rep(seq_len(n_clusters), each = 6),
        trt = rep(rep(0:1, length.out = n_clusters), each = 6)
      )
      d$y <- rbinom(nrow(d), 1, plogis(-0.3 + rep(rnorm(n_clusters, 0, 1.5), each = 6)))
      m <- try(
        geeglm(y ~ trt, id = id, data = d, family = binomial, corstr = "exchangeable"),
        silent = TRUE
      )
      if (inherits(m, "try-error")) NA else coef(summary(m))["trt", 4] < .05
    }),
    na.rm = TRUE
  )
}
sizes <- c(10, 20, 40, 100)
type1 <- sapply(sizes, false_positive)
setNames(round(type1, 3), paste(sizes, "clusters"))
 10 clusters  20 clusters  40 clusters 100 clusters 
       0.095        0.075        0.078        0.055 

With 10 clusters the test rejects a true null hypothesis in 10% of the studies, with 100 in 6%. Below about 40 or 50 clusters use a small-sample correction (Mancl & DeRouen, 2001; the package clubSandwich) or a mixed model.


8. Things to keep in mind

  • Say whose effect it is: population-averaged. Do not write “a patient’s odds”.
  • Sort the data by cluster, and give the visit number in waves if some are missing, or AR(1) will take the wrong neighbors.
  • The working correlation is a tool, not a finding. If the correlations are what you study, use another model.
  • No likelihood: no AIC, no likelihood-ratio test. Use Wald tests and the QIC.
  • Predictors that vary within a cluster can make the estimate depend on the working correlation, if the past of a predictor matters for the future of the outcome. Independence is the safe choice then.
  • Randomized at baseline. The groups are the same at month 0 by design, so one can leave out the main effect of terb and gain precision.
  • Straight lines on the logit scale may not be right for a year. Check the shape with the visits as a factor.
  • Counts, gamma and other outcomes work in the same way, with another family.

9. Reporting the results in APA style

A report (APA 7th edition) needs the marginal model and link, the working correlation and why, robust standard errors, the number of clusters and of observations, and what was assumed about missing data. The numbers come from the R objects:

Code
lab <- c("Intercept", "Terbinafine", "Month", "Terbinafine × month")
apa_table <- data.frame(
  Term = lab,
  OR = paste0(f2(or), " [", f2(low), ", ", f2(high), "]"),
  p = sapply(s[, 4], function(p) sub("^= ", "", pval(p))),
  mix = paste0(
    f2(exp(sm[, 1])),
    " [",
    f2(exp(sm[, 1] - 1.96 * sm[, 2])),
    ", ",
    f2(exp(sm[, 1] + 1.96 * sm[, 2])),
    "]"
  ),
  pm = sapply(sm[, 4], function(p) sub("^= ", "", pval(p)))
)

Method (data analysis):

The presence of a moderate or severe infection at up to seven visits of 294 patients (1,908 observations; De Backer et al., 1998) was analyzed with generalized estimating equations with a logit link and an exchangeable working correlation (Liang & Zeger, 1986). The model contained treatment, time in months and their interaction; standard errors are robust. Odds ratios are population-averaged. Independence and AR(1) working correlations, inverse probability weights for missing visits, and a logistic mixed model with random intercepts, whose odds ratios are patient-specific, served as sensitivity analyses. Analyses were conducted in R (Version 4.6.2; R Core Team, 2026) with the packages geepack (Halekoh et al., 2006) and lme4.

Results:

The odds of a moderate or severe infection fell by 16% per month with itraconazole, OR = 0.84, 95% CI [0.79, 0.89], p < .001. The decrease was somewhat faster with terbinafine, OR = 0.93 per month, 95% CI [0.83, 1.03], p = .151, but the difference was not significant (Table 1). In the mixed model, the patient-specific odds ratio of the interaction was 0.87, p = .044. The estimate of the interaction was between -0.088 and -0.067 with the three working correlations (p between .073 and .197), and -0.067 with weights for missing visits.

Table 1

Toenail Infection: Population-Averaged and Patient-Specific Odds Ratios

Term GEE: OR [95% CI] p Mixed model: OR [95% CI] p
Intercept 0.56 [0.40, 0.78] < .001 0.20 [0.08, 0.46] < .001
Terbinafine 1.01 [0.61, 1.67] .978 0.85 [0.27, 2.67] .783
Month 0.84 [0.79, 0.89] < .001 0.68 [0.62, 0.74] < .001
Terbinafine × month 0.93 [0.83, 1.03] .151 0.87 [0.76, 1.00] .044

Note. 1,908 observations of 294 patients. GEE: exchangeable working correlation (α = 0.42), robust standard errors. Mixed model: random intercepts, SD = 4.00.

Points to remember:

  • State the working correlation, and that the standard errors are robust.
  • Give the number of clusters.
  • Say “population-averaged”, and do not compare the size with mixed models.
  • Say what the missing data are assumed to be.

10. Summary

When Repeated or clustered outcomes of any type, and the interest is in the average of the population
The model A GLM for the marginal mean, a working correlation within clusters
How (R) geepack::geeglm(y ~ x, id = id, waves = visit, data, family, corstr = "exchangeable")
Standard errors Robust (sandwich): valid whatever the correlation is, with enough clusters
Choosing the correlation Beforehand; the QIC as a guide
Against mixed models Population-averaged against subject-specific; smaller coefficients for logits
Needs Missing completely at random (or weights), 40 or more clusters
Related pages Multilevel models, generalized linear models, missing data

References

De Backer, M., De Vroey, C., Lesaffre, E., Scheys, I., & De Keyser, P. (1998). Twelve weeks of continuous oral therapy for toenail onychomycosis caused by dermatophytes: A double-blind comparative trial of terbinafine 250 mg/day versus itraconazole 200 mg/day. Journal of the American Academy of Dermatology, 38(5), S57–S63. https://doi.org/10.1016/S0190-9622(98)70486-4

Halekoh, U., Højsgaard, S., & Yan, J. (2006). The R package geepack for generalized estimating equations. Journal of Statistical Software, 15(2), 1–11. https://doi.org/10.18637/jss.v015.i02

Liang, K.-Y., & Zeger, S. L. (1986). Longitudinal data analysis using generalized linear models. Biometrika, 73(1), 13–22. https://doi.org/10.1093/biomet/73.1.13

Mancl, L. A., & DeRouen, T. A. (2001). A covariance estimator for GEE with improved small-sample properties. Biometrics, 57(1), 126–134. https://doi.org/10.1111/j.0006-341X.2001.00126.x

Robins, J. M., Rotnitzky, A., & Zhao, L. P. (1995). Analysis of semiparametric regression models for repeated outcomes in the presence of missing data. Journal of the American Statistical Association, 90(429), 106–121. https://doi.org/10.1080/01621459.1995.10476493

Zeger, S. L., Liang, K.-Y., & Albert, P. S. (1988). Models for longitudinal data: A generalized estimating equation approach. Biometrics, 44(4), 1049–1060. https://doi.org/10.2307/2531734