One Covariate, Three Different Roles
In a latent-class joint model, a baseline covariate can be related to several parts of the data-generating model. It may predict which latent trajectory class a subject belongs to, be associated with that subject’s longitudinal measurements within a class, and be associated with the subject’s event hazard within a class. These are distinct effects, even when the same covariate appears in all three components.
For example, a baseline risk factor might be associated with greater odds of belonging to a class with a particular trajectory. Within that class, it might also be associated with a lower measured outcome over time, while separately being associated with a higher event hazard. The coefficients are not interchangeable: they have different scales, condition on different quantities, and answer different questions.
The model below uses a baseline-category multinomial logit for class membership, a linear mean model for the longitudinal outcome, and a proportional-hazards model for the event. These are useful standard choices, not requirements of every latent-class joint model. Their assumptions must be assessed in the application.
Specify the Three Components Separately
Take class 1 as the reference class. For \(k=2,\ldots,K\), model class membership by
Here \(a_k\) is the change in the log odds of class \(k\) versus class 1 for a one-unit increase in \(x_i\). Thus, \(\exp(a_k)\) is the multiplicative change in those relative odds per one-unit increase. It is not, by itself, a change in the probability of belonging to class \(k\). The class probabilities depend on the predictors for all classes.
For a simple longitudinal component, suppose the conditional mean is linear in time and in the covariate:
The coefficient \(\gamma_k\) is the difference in mean outcome per one-unit difference in \(x_i\), at the same time and within class \(k\). Without a time-by-covariate interaction, the model assumes the covariate difference in mean outcome is constant over time. If the scientific question calls for a changing difference, one can add \(\eta_k x_i t_{ij}\); then the covariate contrast at time \(t\) is \(\gamma_k+\eta_k t\).
For the event component, a class-specific proportional-hazards model is
Here \(\lambda_{0k}(t)\) is the baseline hazard in class \(k\), and \(\theta_k\) is the log hazard ratio per one-unit increase in \(x_i\), conditional on class and the covariates in the model. The proportional-hazards assumption means that this covariate’s hazard ratio does not vary with time within class \(k\). The hazard describes the instantaneous event rate among subjects still event-free at time \(t\); it is not a probability of an event by time \(t\).
Worked Example: Class-Membership Odds
Worked Example: Class-Membership Odds
Suppose there are three classes and \(x_i\) indicates a baseline exposure, with \(x_i=1\) for exposed subjects and \(x_i=0\) otherwise. The class-membership logits are
For class 2 versus class 1, the exposed-versus-unexposed odds ratio is the exponential of the covariate coefficient:
Thus the relative odds of class 2 rather than class 1 are about 1.49 times as large for exposed subjects as for unexposed subjects. For class 3 versus class 1, the corresponding ratio is \(\exp(-1.40)\approx 0.2466\), so the relative odds are about 0.247 times as large.
The intercepts also matter when finding class probabilities. For an unexposed subject, the class-specific relative odds against class 1 are \(1\), \(\exp(-0.70)\approx0.4966\), and \(\exp(-1.20)\approx0.3012\). Dividing each by their sum, \(1+0.4966+0.3012=1.7978\), gives probabilities approximately \(0.5562\), \(0.2762\), and \(0.1675\). For an exposed subject the relative odds are \(1\), \(\exp(-0.30)\approx0.7408\), and \(\exp(-2.60)\approx0.07427\); their sum is \(1.8151\), giving probabilities approximately \(0.5509\), \(0.4081\), and \(0.04092\). The class 2 probability rises by about 0.132, but that probability difference is not the odds ratio.
Worked Example: Longitudinal and Event Effects
Worked Example: Longitudinal and Event Effects
Suppose the outcome is a symptom score in points and time is measured in years. In class 2, the fitted conditional mean is \(10+1.5t-0.8x\). At year 2, the predicted means for \(x=0\) and \(x=1\) are \(10+1.5(2)=13.0\) points and \(10+1.5(2)-0.8=12.2\) points. The model therefore estimates a 0.8-point lower mean score for exposed subjects at that time, conditional on class 2. Because there is no \(x\)-by-time term, the fitted contrast is also \(-0.8\) points at other times in the modeled range.
Now suppose the class-2 event model has \(\theta_2=\log(1.60)\), and the class-2 baseline hazard at a particular time is \(0.020\) events per person-year. The hazard ratio for \(x=1\) versus \(x=0\), within class 2, is
At that time, the fitted hazards are \(0.020\) events per person-year for \(x=0\) and \(0.020(1.60)=0.0320\) events per person-year for \(x=1\). This is a conditional hazard comparison, not a statement that exposed subjects have a 60% higher probability of experiencing the event over a specified follow-up period.
The three effects answer different questions: the membership coefficient compares relative class odds, the longitudinal coefficient compares mean symptom scores, and the hazard coefficient compares instantaneous event rates. Their numerical values should not be compared directly.
Why the Effects Are Distinct
The distinction follows directly from the model equations. For a one-unit change in \(x_i\), the membership log-odds contrast is
so exponentiating gives the relative-odds ratio \(\exp(a_k)\). In the longitudinal mean model, the corresponding contrast at fixed class and time is
In the event model, the ratio of hazards at the same time and in the same class is
These calculations also show why a class-specific predictor value cannot be mistaken for a covariate effect. The odds ratio for a one-unit covariate contrast comes from the coefficient \(a_k\), not from exponentiating the entire class-membership linear predictor for just one covariate value.
Comparison, Diagnostics, and Limitations
A model allowing separate effects can be compared conceptually with more restricted specifications. A common-slope model constrains, for example, \(\gamma_k\) to be equal across classes; a model omitting \(x_i\) from the longitudinal component sets those effects to zero; and a membership-only model allows \(x_i\) to predict class without a within-class outcome association. These restrictions encode different scientific assumptions. If uncertainty about a restriction matters, estimate and report the relevant contrast with its uncertainty; model comparison procedures must account for the latent-class estimation setting rather than being applied mechanically.
Diagnostics should be matched to each component. Check whether the class-membership relationship is plausible over the observed covariate range and whether some covariate patterns nearly determine class membership. Within classes, inspect whether the longitudinal mean form and residual behavior are adequate, including whether a covariate-by-time interaction is needed. For the event component, assess whether the proportional-hazards assumption is tenable and whether each class has enough events and covariate variation to estimate its effect. Check convergence and sensitivity to starting values as well: unstable estimates can make apparent class-specific differences unreliable.
A coefficient in this model is an adjusted association under the specified model, not automatically a causal effect. Class membership is latent, and conditioning on a latent class is not the same as randomizing subjects to classes. Causal interpretations require additional design and identification assumptions. Also, if \(x_i\) is poorly supported in some classes, the corresponding class-specific effect may be imprecise or driven by extrapolation. A numerical estimate does not ensure that each class contains adequate information.
Class-specific effects are useful when the same covariate may relate differently to latent trajectory groups, measured outcomes, and event risk. Their flexibility is also a limitation: more parameters require more information, and results depend on the chosen class structure and component models. Report which component each coefficient belongs to, its contrast and units, and the class conditioning used in its interpretation.
Check Your Understanding
Answer each question, then compare with the solutions below.
- If \(a_3=0.25\), what is the class-3-versus-class-1 odds ratio for a one-unit increase in \(x\)?
- In a longitudinal model with \(\gamma_2=1.2\), what does the coefficient mean if the outcome is measured in millimeters?
- If \(\theta_1=-0.30\), what is the within-class hazard ratio for a one-unit increase in \(x\)?
- Why is \(\exp(\alpha_2+a_2x)\) not generally the covariate odds ratio for class 2 versus class 1?
Solutions. (1) \(\exp(0.25)\approx1.284\): the relative odds are about 1.28 times as large per one-unit increase. (2) At fixed time and within class 2, the conditional mean outcome is 1.2 mm higher per one-unit increase in \(x\), under the stated model. (3) \(\exp(-0.30)\approx0.7408\), a within-class hazard ratio below 1. (4) It is the class-2-versus-class-1 odds at a particular value of \(x\). The odds ratio comparing \(x+1\) with \(x\) is obtained by subtracting predictors, giving \(a_2\), and exponentiating: \(\exp(a_2)\).