Why Fixed-Effect Priors Need Careful Calibration
A prior for a longitudinal fixed effect is a statement about plausible population-average biomarker patterns before the observed data are used. Its meaning depends on the units and coding of the predictors. A normal prior that is moderately spread for a change measured in milligrams per liter per year could be extremely diffuse, or extremely restrictive, if the outcome or time scale is different.
In a joint model, longitudinal fixed effects help describe the average biomarker trajectory, while the event-time component and shared latent effects contribute information to the joint posterior. This tutorial focuses on specifying and interpreting priors for the longitudinal fixed-effect vector. It does not specify priors for the random-effects covariance matrix, baseline hazard, or association parameters.
For a concrete model, let \(Y_{ij}\) be the biomarker measurement for subject \(i\) at time \(t_{ij}\), and let \(\mathbf{x}_{ij}\) be a vector of fixed-effect predictors. One common specification is
Here, \(\boldsymbol{\beta}\) is the vector of longitudinal fixed effects, \(\mathbf{b}_i\) contains subject-specific random effects, and \(\varepsilon_{ij}\) is measurement error. For illustration, suppose the longitudinal measurements are conditionally independent given the random effects and covariates, with \(\varepsilon_{ij}\sim N(0,\sigma^2)\). The prior discussed here is on \(\boldsymbol{\beta}\), not on \(\mathbf{b}_i\), \(\sigma^2\), or other parameters. The joint posterior combines the prior with the joint data likelihood; consequently, information from the event-time part can influence the posterior for \(\boldsymbol{\beta}\) through the shared model structure.
Normal Priors and Their Interpretation
A common starting point is a multivariate normal prior,
The vector \(\mathbf{m}_{\beta}\) gives prior means, and \(\boldsymbol{\Sigma}_{\beta}\) gives prior variances and covariances. With independent coefficient priors, each coefficient has a univariate normal distribution and \(\boldsymbol{\Sigma}_{\beta}\) is diagonal. For example, \(\beta_t\sim N(0,3^2)\) assigns a normal prior with mean zero and standard deviation 3 to a time slope. The second argument of \(N\) is the variance, so the variance here is 9, not 3.
A weakly informative prior is not a synonym for “no prior information.” It is a proper distribution that regularizes implausibly large values while allowing a broad range of effects that remain plausible on the scientific scale. Its location and spread should be chosen by considering the coefficient’s units and meaning. A zero-centered prior is suitable when positive and negative effects of similar magnitude are plausible; substantive prior knowledge may instead justify a nonzero mean or an asymmetric distribution.
For a normal prior with mean \(m\) and standard deviation \(s\), about 95% of its probability lies between \(m-1.96s\) and \(m+1.96s\). This provides a practical calibration: first state a plausible range for the coefficient, then choose a mean and standard deviation that express that range. It is a probability statement about the prior distribution, not a confidence interval calculated from data.
Worked Example: Calibrating a Prior for Annual Biomarker Change
Suppose a biomarker is measured in milligrams per liter and time is measured in years. Let \(\beta_t\) be the population-average linear change in the biomarker, in milligrams per liter per year. Before seeing the data, a clinical team considers annual changes between \(-6\) and \(6\) mg/L/year broadly plausible, with no preferred direction. Choose a normal prior whose central 95% interval is approximately that range.
A symmetric range around zero suggests a zero prior mean. Set \(1.96s=6\), where \(s\) is the prior standard deviation. Thus
The central 95% prior interval is \(0\pm1.96(3.061)\), or approximately \((-6,6)\) mg/L/year. For a two-year difference in the linear mean trajectory, the slope contribution is \(2\beta_t\), so its prior standard deviation is \(2(3.061)=6.122\) mg/L. Its central 95% prior interval is approximately \((-12,12)\) mg/L. This calculation makes clear that the prior’s implications extend to changes over the follow-up period, not just to a one-year slope.
This prior is defensible only if those ranges are plausible for the biomarker and follow-up period. If changes of 20 mg/L/year are scientifically credible, the proposed scale would be too restrictive. If such changes are implausible, a broader prior may permit unnecessarily extreme trajectories.
Scaling and Changing Units
A coefficient’s numerical value changes when its predictor or outcome is rescaled. A prior must change with it if the intended scientific beliefs are to remain the same. Consider a standardized outcome \(Y^*=(Y-c_Y)/s_Y\) and a time variable \(t^*=t/s_t\), where \(s_Y\) is a positive outcome scale and \(s_t\) is a positive time scale. If the standardized model contains an intercept \(\alpha\) and slope \(\gamma\),
then substitution gives
Therefore, on the original scale the intercept is \(c_Y+s_Y\alpha\), and the slope per original time unit is \((s_Y/s_t)\gamma\). If \(\gamma\sim N(m,s^2)\), multiplying by the constant \(s_Y/s_t\) gives an original-scale slope distributed as \(N((s_Y/s_t)m, (s_Y/s_t)^2s^2)\). The units transform along with the coefficient.
Worked Example: Translating a Prior From Standardized Units
Suppose \(Y\) is a biomarker in mg/L, and define \(Y^*=(Y-50)/10\). Let time be recorded in months, but express the model’s time covariate in years, \(t^*=t_{\text{months}}/12\). The standardized model is \(Y^*=\alpha+\gamma t^*\), with \(\gamma\sim N(0,0.5^2)\). Find the corresponding prior for the raw biomarker slope per year and per month.
Since \(Y=50+10Y^*\) and one unit of \(t^*\) is one year, the raw slope per year is \(10\gamma\). Therefore,
The prior standard deviation is 5 mg/L/year. Since a monthly slope is one twelfth of the annual slope,
Its standard deviation is \(0.4167\) mg/L/month. The central 95% prior interval for the annual slope is approximately \(\pm1.96(5)=\pm9.8\) mg/L/year; the corresponding monthly interval is approximately \(\pm0.8167\) mg/L/month. These are the same prior belief expressed in different units. Assigning the same numerical prior standard deviation in both unit systems would not preserve that belief.
The same issue arises when predictors are centered. If \(x^*=(x-c)/s\), then a model \(\alpha+\gamma x^*\) is equivalent to a model with an intercept \(\beta_0\) and raw-scale slope \(\beta_x\):
Even if \(\alpha\) and \(\gamma\) are assigned independent normal priors, the induced priors on \(\beta_0\) and \(\beta_x\) will generally be dependent. Thus changing the origin or scale of a predictor can change the prior on the raw-scale parameters, particularly when new independent priors are assigned after the change.
Intercepts, Coding, and Prior Dependence
An intercept is the expected biomarker value when every predictor equals zero, under the fixed-effects part of the model. That value may be scientifically meaningful, but it may also refer to an implausible reference subject or time. Centering time at baseline or age at a representative value can make the intercept easier to interpret. The prior for the intercept should then be calibrated for the expected biomarker level at that reference point.
For a binary covariate coded 0 for control and 1 for treatment, its coefficient is the treatment-minus-control difference in the conditional mean at the other predictor values held fixed. If time interacts with treatment, the treatment coefficient is the difference at the time value coded as zero; it is not necessarily the difference at every follow-up time. Prior interpretation must follow the model’s actual coding.
Worked Example: Interpreting Priors With Centered Age
Suppose a longitudinal model has fixed-effects mean \(\beta_0+\beta_A A+\beta_G G\), where \(A=(\text{age}-60)/10\), age is in years, and \(G=1\) for treatment and \(G=0\) for control. Biomarker units are mg/L. Specify independent priors \(\beta_0\sim N(40,8^2)\), \(\beta_A\sim N(0,4^2)\), and \(\beta_G\sim N(0,5^2)\). Interpret the intercept and treatment prior, and calculate the prior distribution of the control mean at age 70.
At age 60, \(A=0\); for the control group, \(G=0\). Thus \(\beta_0\) is the conditional mean at age 60 in the control group, with prior mean 40 mg/L and prior standard deviation 8 mg/L. At age 70, \(A=(70-60)/10=1\). The control mean is \(\beta_0+\beta_A\). Because the priors are independent, its prior mean is \(40+0=40\) mg/L and its prior variance is \(8^2+4^2=80\) (mg/L)\(^2\). Therefore the prior distribution is \(N(40,80)\), with standard deviation \(\sqrt{80}=8.944\) mg/L.
The treatment coefficient is the treatment-minus-control difference at a given age, because there is no age-by-treatment interaction in this model. Its prior assigns probability \(P(-10<\beta_G<10)=2\Phi(10/5)-1=2\Phi(2)-1\approx0.9545\) to a difference between \(-10\) and \(10\) mg/L. This interpretation depends on the specified coding and the absence of an interaction.
Choosing Among Prior Specifications
Independent normal priors are convenient and interpretable when each coefficient can be calibrated separately. A multivariate normal prior can represent prior dependence among fixed effects when that dependence is substantively justified. But independence is not invariant to reparameterization: independent priors on an intercept and slope at one time origin generally imply correlated priors on the intercept and slope at another origin. Choose a parameterization that makes the coefficients meaningful, and state clearly whether the prior is intended to apply in that parameterization or to preserve a specified distribution under transformation.
| Approach | Potential advantage | Main caution |
|---|---|---|
| Independent normal priors on the chosen scale | Simple to specify and explain coefficient by coefficient | Results depend on units, coding, and parameterization |
| Multivariate normal prior | Can express prior dependence among fixed effects | Requires defensible means and covariance on the chosen scale |
| Very diffuse or flat prior | May appear to add little information | Can permit implausible trajectories; an improper prior can also create posterior-propriety problems |
A proper normal prior has support over the entire real line. That is appropriate when positive and negative coefficient values are possible, but it can assign probability to scientifically impossible trajectories or mean values. If the parameter itself has a genuine constraint, the model and prior should respect that constraint rather than relying on a broad normal prior to do so. A weakly informative prior should regularize extreme values without silently imposing a strong belief near zero.
Diagnostics and Common Pitfalls
Before fitting the model, check the prior’s implications in the units that will be reported. For a slope, translate its scale into expected biomarker change over one year and over the full follow-up period. For an intercept, identify the covariate values at which it applies. For an interaction, state the reference values at which its coefficient is interpreted. These checks can reveal a prior that looks numerically moderate but implies implausibly large biomarker trajectories.
- Ignoring units. A standard deviation of 1 for a slope means something different per month than per year. Convert it before interpreting or comparing priors.
- Using an unexplained “large” scale. A prior is not weakly informative merely because its standard deviation is large relative to 1. Compare it with plausible changes on the biomarker’s scale.
- Forgetting the intercept reference. With centered time or age, the intercept refers to the chosen reference value, not necessarily time zero or age zero.
- Re-centering but reusing the same independent priors. This may change the implied prior for trajectories. Transform the prior distribution if preserving the original beliefs is intended.
- Calling a prior-data conflict a software error. If plausible observed trajectories lie in regions to which the prior assigns little probability, revisit the scientific calibration and model specification. Do not widen priors automatically without considering why the conflict arose.
A frequent mistake is to say, “The prior is weak because its standard deviation is 10.” That conclusion has no meaning without the coefficient’s units and interpretation. A standard deviation of 10 mg/L/year may be broad for one biomarker and restrictive for another. The correction is to state the implied range and trajectory changes in context, then decide whether those implications are genuinely weak relative to the scientific information available.
Check Your Understanding
Answer each question, then compare with the solutions below.
- A slope prior is \(N(0,2^2)\) for change in biomarker units per year. What is the induced prior for the slope per month?
- A standardized outcome is \(Y^*=(Y-100)/20\). If its time slope per year has prior \(N(0,0.3^2)\), what is the prior standard deviation for the raw outcome slope per year?
- In a model with age centered at 50 years and treatment coded 0 or 1, what does the treatment coefficient represent if there is no interaction?
- Why can independent priors on an intercept and slope become dependent after the time origin is changed?
Solutions. (1) A monthly slope is one twelfth of the annual slope, so its prior is \(N(0,(2/12)^2)\), with standard deviation \(0.1667\) biomarker units per month. (2) The raw slope is \(20\) times the standardized slope, so its standard deviation is \(20(0.3)=6\) outcome units per year. (3) It is the treatment-minus-control difference in the conditional mean at the other covariate values, including age 50, held fixed. (4) Changing the time origin expresses the new intercept as the old intercept plus a constant times the slope. The new intercept and slope therefore share the slope term, which generally induces dependence even if the original coefficients were independent.