Tutorials › Joint Modeling of Longitudinal and Time-to-Event Data › Profile Likelihood for an Association Parameter

Maximum Likelihood and EM Estimation · Tutorial 283 of 697

Profile Likelihood for an Association Parameter

You will learn to build and check a profile likelihood for a longitudinal-survival association parameter while reestimating the remaining joint-model parameters at each fixed value.

Advanced 12 min read

What You'll Learn

  • Define the profile likelihood by maximizing over all nuisance parameters at each fixed association value.
  • Identify the integrated joint likelihood and assumptions needed to construct the profile.
  • Calculate profile log-likelihood values from repeated nuisance-parameter optimizations.
  • Use local curvature and a numerical grid to locate and check a profile maximum.
  • Distinguish a profile from a slice that holds nuisance estimates fixed.
  • Diagnose optimization, integration, and parameter-boundary problems.

Why Profile the Association Parameter?

In a joint model, the association parameter describes how the underlying longitudinal trajectory relates to the event hazard. Its estimate is rarely independent of the other model parameters: changing the association value may be offset, in part, by changes in the longitudinal mean, random-effects distribution, or survival parameters. A profile likelihood makes this dependence visible by asking: for each fixed association value, how well can the rest of the model fit?

The focus here is the construction of that profile, not a test or interval based on it. The association parameter is denoted by \(\alpha\), and all other unknown parameters are grouped into \(\eta\). Depending on the model, \(\eta\) includes longitudinal fixed effects and residual variance, random-effects covariance parameters, survival regression coefficients, and baseline-hazard parameters.

Definition: The profile likelihood for \(\alpha\) is \(L_p(\alpha)=\sup_{\eta\in\mathcal{H}} L(\alpha,\eta)\), where \(L(\alpha,\eta)\) is the joint-model likelihood and \(\mathcal{H}\) is the permitted parameter space for the nuisance parameters. The profile log-likelihood is \(\ell_p(\alpha)=\sup_{\eta\in\mathcal{H}}\ell(\alpha,\eta)\), where \(\ell=\log L\). In computation, the supremum is sought by maximizing over \(\eta\) separately at each fixed \(\alpha\).

A profile is therefore not a likelihood evaluated at one fixed set of nuisance estimates. It is a sequence of constrained maximizations. The overall maximum-likelihood estimate of \(\alpha\) maximizes \(\ell_p(\alpha)\), provided the global maximum is attained within the permitted parameter space.

The Joint Likelihood Being Profiled

Let \(y_i\) denote subject \(i\)'s longitudinal measurements, \(t_i\) the observed event or censoring time, and \(\delta_i\) the event indicator, equal to 1 for an observed event and 0 for right censoring. Let \(b_i\) be the subject-specific random effects. A common shared-random-effects specification has longitudinal density \(f(y_i\mid b_i;\eta)\), random-effects density \(f(b_i;\eta)\), and conditional hazard

$$ h_i(t\mid b_i)=h_0(t;\eta)\exp\{\gamma^\top w_i+\alpha m_i(t;b_i)\}, $$

where \(w_i\) contains survival covariates, \(\gamma\) is their coefficient vector, and \(m_i(t;b_i)\) is the longitudinal model's latent mean at time \(t\). In this parameterization, \(\alpha\) is the log-hazard change per one-unit increase in the latent mean, conditional on the other terms in the hazard model. Its numerical interpretation depends on the units used for that mean.

Under conditional independence of the longitudinal measurements and event time given \(b_i\) and covariates, the subject's likelihood contribution is

$$ L_i(\alpha,\eta)=\int f(y_i\mid b_i;\eta) \left[h_i(t_i\mid b_i)^{\delta_i}S_i(t_i\mid b_i)\right] f(b_i;\eta)\,db_i, \qquad L(\alpha,\eta)=\prod_{i=1}^{n}L_i(\alpha,\eta). $$

Here \(S_i(t\mid b_i)=\exp\{-\int_0^t h_i(u\mid b_i)\,du\}\) is the conditional event-free survival function. This likelihood relies on a correctly specified longitudinal model, random-effects distribution, hazard and survival models, and an appropriate censoring assumption. In particular, censoring must be noninformative for the event process under the conditioning used by the model. The integration over \(b_i\) is essential: the profile is formed from the marginal likelihood, not by treating estimated random effects as observed data.

Constructing the Profile

Choose a value of \(\alpha\), hold it fixed, and maximize the integrated log-likelihood over every component of \(\eta\). Repeat this operation across a grid of association values. The nuisance estimates will generally differ from one grid point to another. A reliable implementation uses the solution at a nearby grid point as a starting value, but should also use additional starts when local maxima are plausible.

1
Choose a scale and range for \(\alpha\).
Use the model's allowed parameter space and the scientific units of the latent trajectory. Include a sufficiently broad range to determine whether the profile peak is interior or near a boundary.
2
Fix one grid value.
At \(\alpha=a\), maximize \(\ell(a,\eta)\) over all nuisance parameters, respecting their constraints. Record both the maximized value and the nuisance estimates.
3
Repeat and refine.
Repeat for each grid value. Refine the grid near the largest profile values, and optimize \(\alpha\) jointly with \(\eta\) or use a local one-dimensional maximization to locate the peak more precisely.
4
Check numerical stability.
Verify convergence from multiple starting values and, where integration is numerical, check that the profile is stable to increased integration accuracy.

Why Reoptimizing Nuisance Parameters Matters

The reason for reoptimization can be expressed through derivatives. Suppose that at each interior value \(a\), the nuisance maximum \(\hat\eta(a)\) is unique and smooth, and that the nuisance score is zero there. Then \(\ell_p(a)=\ell(a,\hat\eta(a))\). Differentiating by the chain rule gives

$$ \frac{d\ell_p(a)}{da} = \frac{\partial\ell(a,\hat\eta(a))}{\partial a} + \left\{\frac{\partial\ell(a,\hat\eta(a))}{\partial\eta}\right\}^{\top} \frac{d\hat\eta(a)}{da} = \frac{\partial\ell(a,\hat\eta(a))}{\partial a}, $$

because the nuisance score in braces is zero at the constrained maximum. Thus an interior maximum of the profile satisfies the association score equation evaluated at the nuisance estimates for that value of \(\alpha\). If \(\alpha\) is on a boundary, a one-sided condition replaces the interior zero-score condition.

The profile's local curvature also accounts for nuisance-parameter adjustment. If the full log-likelihood Hessian is partitioned into blocks for \(\alpha\) and \(\eta\), then, at a regular interior maximum,

$$ \ell_p''(\alpha) = \ell_{\alpha\alpha} - \ell_{\alpha\eta}\ell_{\eta\eta}^{-1}\ell_{\eta\alpha}. $$

This follows by differentiating the nuisance score equation, which gives \(d\hat\eta/d\alpha=-\ell_{\eta\eta}^{-1}\ell_{\eta\alpha}\), and substituting into the derivative of the profile score. The second term represents the adjustment from nuisance parameters being allowed to move. Holding \(\eta\) fixed removes that adjustment and produces a different, conditional slice of the likelihood.

Worked Example: A Profile Grid and Its Maximum

Consider a clearly hypothetical joint-model analysis of 120 subjects. The latent longitudinal mean is measured in points, so \(\alpha\) is in inverse points. At each fixed value, the longitudinal, random-effects, and survival nuisance parameters are reoptimized. Suppose the resulting profile log-likelihood values are:

Fixed \(\alpha\) (per point)Maximized nuisance log-likelihood
0.25-414.40
0.45-413.20
0.65-412.80
0.85-413.20
1.05-414.40

The largest tabulated value is \(-412.80\), at \(\alpha=0.65\) per point. For example, the profile difference between \(\alpha=0.45\) and \(\alpha=0.65\) is

$$ \ell_p(0.45)-\ell_p(0.65) =(-413.20)-(-412.80)=-0.400. $$

A more precise check is possible because these values lie on the quadratic curve \(\ell_p(\alpha)=-412.80-10(\alpha-0.65)^2\) over the displayed grid. Substitution at \(0.45\) gives \(-412.80-10(0.20)^2=-413.20\), as in the table. Within this hypothetical profile, the peak is at \(0.65\) per point; an increase of one point in latent mean corresponds to a hazard ratio of \(\exp(0.65)\approx1.916\), conditional on the other hazard terms. This interpretation depends on the model and does not imply a causal effect.

A Profile Is Not a Fixed-Nuisance Slice

At the joint maximum, the nuisance estimates are optimized for one particular association value. Evaluating the likelihood at those same nuisance estimates for all other values of \(\alpha\) may be useful as a diagnostic, but it is not the profile likelihood. The distinction can materially affect the apparent peak and curvature.

Worked Example: Comparing a Profile With a Fixed-Nuisance Slice

Continue with a hypothetical fit whose joint maximum is at \(\hat\alpha=0.65\) per point, with maximum log-likelihood \(-412.80\). Suppose that reoptimizing nuisance parameters gives \(\ell_p(0.40)=-414.05\), \(\ell_p(0.80)=-413.05\), and \(\ell_p(1.20)=-414.35\). Now evaluate the likelihood at those same association values while incorrectly holding nuisance estimates at their values from \(\hat\alpha=0.65\). Suppose the resulting values are \(-414.55\), \(-413.60\), and \(-415.30\), respectively.

At \(\alpha=0.80\), for example, the proper profile calculation is the maximum over \(\eta\), with value \(-413.05\). The fixed-nuisance calculation is only one candidate nuisance value, giving \(-413.60\). The difference is

$$ (-413.05)-(-413.60)=0.550. $$

The profile cannot be lower than the likelihood at any particular permitted nuisance value, because it is a maximum over those values. In this example, nuisance adjustment improves the log-likelihood at all three off-peak values. The fixed slice therefore understates the likelihood away from the joint estimate and can suggest misleading curvature.

Refining the Peak and Checking Computation

A coarse grid helps reveal the shape of the profile but does not, by itself, identify the maximum precisely. A local quadratic approximation can suggest where to refine the search. Consider another hypothetical analysis in which nuisance parameters are reoptimized at \(\alpha=0.50, 0.60,\) and \(0.70\) per unit, yielding \(-287.41,-287.28,\) and \(-287.39\). Set \(x=\alpha-0.60\), and fit \(q(x)=c+bx+ax^2\) through these three values. Since \(q(0)=-287.28\), the other two points imply

$$ 0.01a-0.10b=-0.13,\qquad 0.01a+0.10b=-0.11, \qquad a=-12,\quad b=0.10. $$

The fitted parabola has its vertex at \(x=-b/(2a)=0.00417\), suggesting a peak near \(\alpha=0.6042\). Its predicted log-likelihood gain over \(q(0)\) is \(b^2/(-4a)=0.000208\). This is only a local interpolation: the appropriate check is to reoptimize the nuisance parameters at the refined value and confirm that the actual profile value and nearby shape agree. A small apparent improvement should not be reported as meaningful if it is below the numerical accuracy of the likelihood calculation.

For a joint model, numerical integration over random effects is part of every likelihood evaluation. If integration error changes as nuisance parameters or \(\alpha\) change, it can create a jagged profile or a false maximum. Check that integration settings are sufficiently accurate across the profile, not just at the final estimate. Also inspect convergence codes, gradients, and nuisance estimates at grid points near the peak. Abrupt jumps in nuisance estimates or irregular profile values can indicate local optimization failures, weak identification, or inadequate integration accuracy.

Alternatives, Limitations, and Common Mistakes

ApproachWhat varies when \(\alpha\) varies?Main use or limitation
Profile likelihoodAll nuisance parameters are reoptimized at each fixed \(\alpha\).Shows fit after nuisance adjustment; computationally demanding.
Fixed-nuisance likelihood sliceNuisance estimates are held at one selected value.Can illustrate sensitivity, but is not a profile and may misstate curvature.
Wald approximationUses the estimate and local standard error from the joint fit.Convenient near a regular, approximately quadratic maximum; may be unreliable for an asymmetric or boundary-near profile.

Profiling does not remedy model misspecification, weak identification, or a poorly computed integrated likelihood. It can be costly because nuisance optimization must be repeated many times. A profile can also be flat, asymmetric, or have multiple local peaks; in such cases, a single local quadratic summary may conceal important features. Constraints on nuisance parameters must be enforced at every fixed value of \(\alpha\), and a boundary in \(\alpha\)'s permitted range should be reported rather than silently treated as an interior estimate.

Common mistake: “I estimated all parameters once, so I can vary \(\alpha\) while holding the other estimates fixed; that curve is the profile.” The correction is that a profile is defined by a new maximization over all nuisance parameters for every fixed \(\alpha\). A fixed-nuisance curve is just a slice. Confusing the two can give the wrong profile peak and an incorrect picture of how well nearby association values fit.

Key takeaway: To construct a profile likelihood for the association parameter, fix \(\alpha\), maximize the integrated joint log-likelihood over every nuisance parameter, and repeat. Check that each optimization and random-effects integration is accurate before interpreting the profile's shape.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions below.

  1. In \(L_p(\alpha)=\sup_{\eta}L(\alpha,\eta)\), which parameters are held fixed and which are optimized?
  2. If a fixed-nuisance likelihood value at \(\alpha=a\) is \(-208.6\), can the profile log-likelihood at \(a\) be \(-209.0\)? Explain.
  3. At three fixed values, the maximized log-likelihoods are \(-91.4,-90.8,-91.1\). Which is the best value among those grid points, and what additional step would improve its precision?
  4. Name two numerical problems that can make a computed profile unreliable in a joint model.

Solutions. (1) Hold \(\alpha\) fixed and optimize over every nuisance parameter in \(\eta\). (2) No, if the nuisance value used for \(-208.6\) is permitted: the profile is a supremum, so its log-likelihood must be at least \(-208.6\). (3) The middle grid point is best, with log-likelihood \(-90.8\); refine the grid and reoptimize near that value. (4) Examples include failure to reach the nuisance maximum, inadequate random-effects integration, and starting values that lead to different local maxima.

Clinical Biostats