Tutorials › Econometrics (Graduate) › Correlated Random-Effects Logit and Probit

Binary Choice Models · Tutorial 477 of 952

Correlated Random-Effects Logit and Probit

Learn how individual-level covariate means extend random-intercept logit and probit models, and how to interpret their within- and between-individual associations.

Intermediate 10 min read

What You'll Learn

  • Define a correlated random-effects binary-response model using individual-level covariate means.
  • Derive the within- and between-individual coefficients from the model’s index.
  • Distinguish conditional probabilities from probabilities averaged over random effects.
  • Interpret logit and probit coefficients without treating them as direct probability changes.
  • Test whether individual means are associated with outcomes, and recognize the assumptions behind that test.

Why Allow Correlation Between Effects and Covariates?

In a panel, the same individual is observed repeatedly, and a binary outcome may depend on persistent characteristics such as preferences, underlying health, or ability. A random-intercept logit or probit model accounts for this persistent heterogeneity by adding an individual-specific effect. Its usual independence assumption, however, can be implausible: people with persistently high covariate values may also differ in unobserved ways that affect the outcome.

A correlated random-effects model relaxes that independence assumption in a structured way. It models the association between the individual effect and observed covariates using each individual’s covariate means. This allows the model to distinguish associations arising from changes within an individual over time from associations between individuals with different average covariate levels. The means do not automatically remove all confounding or make an association causal; the adequacy of the model’s assumptions remains important.

Definition: Let \(Y_{it}\) be a binary outcome for individual \(i\) at time \(t\), and let \(X_{it}\) be a vector of observed covariates. For \(T_i\) observed periods, define the individual-level mean vector as \(\bar{X}_i=T_i^{-1}\sum_{t=1}^{T_i}X_{it}\). A correlated random-effects logit or probit model includes both \(X_{it}\) and \(\bar{X}_i\) in the response index, together with an individual-specific random effect.

Model and Assumptions

Write \(F(z)=1/(1+\exp(-z))\) for the logistic cumulative distribution function and \(F(z)=\Phi(z)\) for the standard normal cumulative distribution function. A common correlated random-effects specification is

$$ P(Y_{it}=1\mid X_i,a_i)=F(X_{it}'\beta+\bar{X}_i'\theta+a_i). $$

Here \(X_i\) denotes the individual’s observed covariate history, \(\beta\) is the coefficient vector on current covariates, \(\theta\) is the coefficient vector on their individual means, and \(a_i\) is the remaining random intercept. The logit model uses the logistic \(F\); the probit model uses the normal \(F\). In a standard random-effects likelihood, outcomes are conditionally independent over time given the covariate history and \(a_i\), and the distribution of \(a_i\) is specified, often as normal with mean zero and variance \(\sigma_a^2\).

The key working assumption is that, after accounting for the included mean vector, the remaining effect \(a_i\) is independent of the covariate history. Equivalently, the model represents the part of the individual effect associated with observed covariates through their means and treats the remainder as independent. This is a restriction, not a mathematical guarantee: if dependence also involves other features of the covariate history, such as trends or particular lags, means alone may not capture it.

Because the same \(a_i\) applies across an individual’s observations, the likelihood contribution for that individual integrates the joint conditional likelihood over the distribution of \(a_i\). In general, this integration does not reduce to fitting an ordinary logit or probit to independent person-period observations. For logit with a normally distributed random effect, the integral generally has no closed-form expression and is evaluated numerically.

How the Means Separate Within and Between Associations

For clarity, first consider one time-varying covariate \(x_{it}\), with coefficient \(\beta\) and mean coefficient \(\theta\). The covariate terms in the index can be rearranged:

$$ \beta x_{it}+\theta\bar{x}_i =\beta(x_{it}-\bar{x}_i)+(\beta+\theta)\bar{x}_i. $$

The deviation \(x_{it}-\bar{x}_i\) describes how the individual’s current value differs from their own average. The mean \(\bar{x}_i\) describes how that individual’s average compares across individuals. Thus \(\beta\) is the within-individual association on the model’s index scale, and \(\beta+\theta\) is the between-individual association on that scale. The coefficient \(\theta\) by itself is the adjustment to the current-value coefficient that makes the between association differ from the within association.

This decomposition is a statement about the index, not a claim that either coefficient is a constant change in outcome probability. In logit and probit models, probabilities are nonlinear functions of the index. Probability changes depend on the starting index and, when averaging over random effects, on the random-effect distribution as well.

Worked Example: Decomposing a Logit Index

Suppose a hypothetical panel model for a binary outcome uses one time-varying covariate \(x_{it}\) and has estimated coefficients \(\hat{\beta}=0.20\) and \(\hat{\theta}=-0.10\). One individual has observed covariate values \(2, 4, 3,\) and \(5\). Find the individual’s mean, the within and between index coefficients, and the fitted conditional probability for the observation with \(x_{it}=5\) when \(a_i=0\).

The individual mean is

$$ \bar{x}_i=\frac{2+4+3+5}{4}=\frac{14}{4}=3.5. $$

The within-individual index coefficient is \(\hat{\beta}=0.20\). The between-individual index coefficient is \(\hat{\beta}+\hat{\theta}=0.20-0.10=0.10\). For the observation with \(x_{it}=5\), the index conditional on \(a_i=0\) is

$$ \hat{\eta}_{it}=0.20(5)-0.10(3.5)+0=1.00-0.35=0.65. $$

Applying the logistic function gives

$$ \hat{P}(Y_{it}=1\mid X_i,a_i=0) =\frac{1}{1+\exp(-0.65)} \approx 0.657. $$

This is a conditional prediction for a random effect set to zero, not the probability averaged over the random-effect distribution. The positive within coefficient describes a positive association on the logit index scale; it does not mean every one-unit change raises probability by 0.20.

Interpreting Probabilities and Random Effects

There are two distinct prediction targets. A probability conditional on a specified random effect is \(F(X_{it}'\beta+\bar{X}_i'\theta+a_i)\). A population-averaged probability for an individual with given covariate history integrates over the random-effect distribution:

$$ P(Y_{it}=1\mid X_i) =\int F(X_{it}'\beta+\bar{X}_i'\theta+a)\,dG(a), $$

where \(G\) is the assumed distribution of \(a_i\). These quantities need not agree. In particular, setting \(a_i=0\) does not generally produce the probability averaged over \(a_i\), because applying a nonlinear function and then averaging is not the same as applying the function at the average.

For a continuous covariate, the derivative of the conditional probability with respect to its current value, holding its individual mean and \(a_i\) fixed, is \(f(\eta_{it})\beta\), where \(f\) is the density corresponding to \(F\). The derivative for a population-averaged probability integrates this derivative over \(G\). For discrete covariates, a probability change is computed by comparing predictions at the two values. In either case, the probability-scale result depends on the covariate profile and should be interpreted with units and context.

Worked Example: Within and Between Probit Probability Contrasts

Consider a hypothetical probit model with one covariate and estimates \(\hat{\beta}=-0.30\) and \(\hat{\theta}=0.50\). For illustration, set \(a_i=0\). Calculate (1) the conditional probability change when the current covariate rises from 2 to 3 while the individual mean stays at 2, and (2) the contrast between profiles with \((x_{it},\bar{x}_i)=(2,2)\) and \((3,3)\).

For the first, within-individual contrast, the indices are

$$ \hat{\eta}_1=-0.30(2)+0.50(2)=0.40,\qquad \hat{\eta}_2=-0.30(3)+0.50(2)=0.10. $$

Using the standard normal cumulative distribution function,

$$ \Phi(0.40)\approx 0.6554,\qquad \Phi(0.10)\approx 0.5398. $$

The conditional probability change is \(0.5398-0.6554=-0.1156\), or about a 11.6 percentage-point decrease. This is a profile-specific contrast at \(a_i=0\), not a universal probability effect.

For the second contrast, both the current value and the individual mean rise by one unit. The indices are

$$ \hat{\eta}_{(2,2)}=-0.30(2)+0.50(2)=0.40,\qquad \hat{\eta}_{(3,3)}=-0.30(3)+0.50(3)=0.60. $$

Therefore the predicted probabilities are \(\Phi(0.40)\approx0.6554\) and \(\Phi(0.60)\approx0.7257\), a difference of approximately \(0.0703\), or 7.03 percentage points. The index change is \(\hat{\beta}+\hat{\theta}=0.20\), the between-individual index association. The probability contrast differs from the first because it changes both the current covariate and the individual mean, and because the probit link is nonlinear.

What the Mean Terms Tell You

A nonzero mean coefficient indicates that the covariate’s individual average contributes to the response index, conditional on the current covariate value and the other included terms. In that sense, it is evidence that a model using current covariates alone would not represent the association captured by the specified mean terms. It is not, by itself, proof that all dependence between the individual effect and covariates has been handled, nor is it evidence of a causal effect.

For several time-varying covariates, the decomposition applies component by component. A joint test that their mean coefficients are all zero can assess whether the included means add explanatory information under the model. For one mean coefficient, a Wald test uses its estimate divided by its standard error; for several coefficients, a joint Wald test uses their estimated covariance matrix. Such tests rely on the fitted model and its inference procedure being appropriate.

Worked Example: Testing a Mean Coefficient

Suppose a hypothetical correlated random-effects logit model estimates the mean coefficient for a time-varying covariate as \(\hat{\theta}=0.30\), with standard error \(SE(\hat{\theta})=0.12\). Test \(H_0:\theta=0\) against the two-sided alternative \(H_a:\theta\ne0\) at significance level \(\alpha=0.05\), using a large-sample Wald test.

The Wald statistic is

$$ z=\frac{\hat{\theta}-0}{SE(\hat{\theta})} =\frac{0.30}{0.12}=2.50. $$

Under the null and the stated large-sample approximation, the statistic is compared with a standard normal distribution. The two-sided p-value is

$$ P(|Z|\ge 2.50)\approx 0.0124,\qquad Z\sim N(0,1). $$

Since \(0.0124<0.05\), reject \(H_0\) at the 5% level. The data provide evidence that this individual mean is associated with the logit index conditional on the current covariate and the other model terms. The implied between-individual index coefficient is \(\hat{\beta}+0.30\); this test alone does not test whether that sum is zero. Nor does rejection establish that the mean terms fully account for dependence or identify a causal effect.

Model Checks and Common Pitfalls

The mean terms are most informative when the covariate varies within individuals. For a time-invariant covariate, its individual mean equals its value, so including both as separate regressors creates exact collinearity; its separate current and mean coefficients cannot be identified in that specification. In an unbalanced panel, define means over the observed periods used for the analysis, and consider whether differing observation patterns affect their interpretation. Time indicators or other controls may also be needed when common time changes affect outcomes and covariates.

A central pitfall is to call the model “fixed effects” merely because it includes individual means. For example, one might reason, “The means absorb every stable unobserved difference, so the remaining coefficient is automatically causal.” That conclusion does not follow. The model still specifies a distribution for a random intercept and assumes its remaining component is independent of the observed covariate history conditional on the included means. Misspecified dependence, omitted time-varying confounders, or other violations can still bias interpretation. The within and between labels describe how the covariate terms enter the index; they do not, on their own, supply a causal design.

A second mistake is to interpret \(\beta\) as a probability change. In a logit model, a one-unit increase changes the conditional log odds by \(\beta\), holding the other index terms fixed; in a probit model, it changes the probit index by \(\beta\). Neither statement is a constant probability change. To communicate probability-scale implications, calculate contrasts or marginal effects for specified covariate profiles and state whether predictions condition on or integrate over the random effect.

Key takeaway: Adding individual covariate means allows a random-effects logit or probit model to represent a specified form of dependence between observed covariate histories and individual effects. In the index, the current-value coefficient is the within association, while the current-value plus mean coefficient is the between association. Probability interpretations require the nonlinear link and the random-effect treatment to be made explicit.

Check Your Understanding

Answer each question using the model and assumptions stated above.

  1. For a single covariate, if \(\beta=0.25\) and \(\theta=0.15\), what are the within- and between-individual index coefficients?
  2. Why is the probability at \(a_i=0\) generally different from the probability integrated over the random-effect distribution?
  3. In a probit model, what does a one-unit increase in a current covariate change directly: probability, odds, or the probit index?
  4. What happens to separate current-value and mean coefficients for a time-invariant covariate when its mean equals its value?
  5. Why does a statistically significant mean coefficient not establish that the model has removed all confounding or identified a causal effect?
Clinical Biostats