Why Direction Matters
A covariate hypothesis often predicts not only that a parameter differs across covariate values, but also which way it should differ. For example, a prespecified pharmacological hypothesis might predict that an inhibitor reduces clearance. A test that uses this direction can be more sensitive to effects in the predicted direction than a two-sided test. That gain is valid only when the direction is specified independently of the observed effect estimate and its uncertainty.
The sign of an effect is not meaningful without its model coding. In a log-linear model, a positive coefficient means the modeled parameter increases as the covariate increases; for a binary indicator, the coefficient describes the coded group relative to its reference group. Reversing the group coding reverses the coefficient’s sign. A biological statement therefore needs to be translated into the actual parameterization before a directional test is chosen.
Encode the Biological Prediction Before Fitting
Consider a typical clearance model with a binary inhibitor indicator \(I\), coded 0 for no inhibitor and 1 for inhibitor use:
Here \(TVCL_i\) is the typical clearance for subject \(i\), and \(\theta_{CL}\) is typical clearance in the reference group. The ratio of typical clearances is \(\exp(\beta)\). Thus, the prediction that inhibitor use reduces typical clearance corresponds to \(\beta<0\), not merely to a “negative inhibitor effect” in the abstract. If the indicator is instead coded 1 for no inhibitor, the sign corresponding to the same biological prediction changes.
The prediction should be justified by scientific knowledge or a prespecified analysis plan, not by which sign the fitted coefficient happens to have. A directional hypothesis is also not made valid simply by imposing a sign constraint in software. The constraint must represent a defensible scientific restriction and must be declared before using the data to choose a direction.
Worked Example: A Prespecified Reduction in Clearance
Suppose a hypothetical analysis uses the model above, with inhibitor coded 1 and no inhibitor coded 0. Before examining the results, investigators specify \(H_0:\beta\geq 0\) versus \(H_a:\beta<0\). An unconstrained fit gives \(\hat{\beta}=-0.25\), with \(SE=0.10\). Assume the estimate is approximately normally distributed under the null and that the standard error is reliable.
The Wald statistic is \(z=\hat{\beta}/SE\). For a lower-direction alternative, the p-value is the lower tail:
At \(\alpha=0.05\), this is evidence against the null in the prespecified direction. It is not evidence that the null has a 0.621% probability of being true. The estimate corresponds to a clearance ratio of \(\exp(-0.25)\approx 0.779\), or about 22.1% lower typical clearance for the inhibitor group in this model.
A one-sided 95% upper confidence bound for \(\beta\), using the normal approximation, is \(\hat{\beta}+1.645SE=-0.25+1.645(0.10)=-0.0855\). On the ratio scale the upper bound is \(\exp(-0.0855)\approx 0.918\). Under the model and approximation, this bound is below a ratio of 1, consistent with a reduction. This interval and test rely on the same prespecified direction; they do not justify choosing the direction after seeing the estimate.
Wald Tests and Their Assumptions
For a regular scalar coefficient, a Wald test uses the estimate and its standard error. If \(H_a:\beta>0\), calculate \(z=\hat{\beta}/SE\) and use \(p=P(Z\geq z)\), where \(Z\sim N(0,1)\) under the null boundary. For \(H_a:\beta<0\), use \(p=P(Z\leq z)\). A conventional two-sided test instead uses both tails. The one-sided p-value is not obtained by halving a two-sided p-value unless the estimate is in the prespecified direction and the same normal approximation is being used.
This approximation is most defensible when the likelihood is sufficiently regular and informative: the coefficient is identifiable, the fitted model is stable, and the estimate’s sampling distribution is reasonably close to normal. In nonlinear mixed-effects models, sparse information, strong parameter correlations, weak covariate overlap, or a poorly behaved likelihood can make a Wald approximation unreliable. A small standard error is not itself proof that the approximation is sound.
The standard error must refer to the same coefficient and parameterization as the test. If \(\beta\) is a log-scale coefficient, it is tested on that scale; an effect ratio such as \(\exp(\beta)\) is a transformation for interpretation. The direction must be translated consistently: \(\beta>0\) means a ratio above 1, while \(\beta<0\) means a ratio below 1.
Constrained Likelihood-Ratio Tests
A scalar directional likelihood-ratio test can be implemented by fitting the model under the directional restriction and comparing it with the null boundary. For a positive-direction test, the alternative fit restricts \(\beta\geq 0\), while the null fit fixes \(\beta=0\). Let \(\ell_0\) be the maximized log likelihood under the null and \(\ell_c\) the maximized log likelihood under the constrained alternative. The statistic is \(LR=2(\ell_c-\ell_0)\).
Under the null, the constrained coefficient is on the boundary of the alternative parameter space. Consequently, the usual \(\chi^2_1\) reference distribution does not apply. For a single regular coefficient and a single one-sided constraint, the asymptotic reference distribution is a mixture: probability one-half at zero and probability one-half from a \(\chi^2_1\) distribution. This is often called a chi-bar-square distribution.
The mixture can be understood from the local normal approximation. Under the null, an unconstrained standardized estimate behaves approximately like \(Z\sim N(0,1)\). Restricting the estimate to be nonnegative replaces a negative estimate by the boundary value zero. The approximate likelihood-ratio statistic is therefore \(\max(0,Z)^2\). Symmetry gives probability one-half that \(Z\leq 0\), producing an LR value of zero; when \(Z>0\), its square has the \(\chi^2_1\) distribution conditional on the positive half. This yields the stated mixture.
This derivation is for one scalar boundary restriction. Multiple inequalities, nonregular parameters, or additional boundary parameters can change the reference distribution. In those settings, do not assume the simple one-half mixture; the appropriate null distribution may require a problem-specific derivation or simulation.
Worked Example: A Constrained Likelihood-Ratio Test
In a hypothetical positive-direction test of a covariate effect, the null fit has log likelihood \(\ell_0=-512.60\). The fit with \(\beta\geq 0\) has \(\ell_c=-510.98\), and the estimated coefficient is positive. Assume the scalar constraint and regularity conditions for the mixture result are appropriate.
The statistic is
The upper-tail probability from \(\chi^2_1\) at 3.24 is approximately 0.0719. The one-sided mixture p-value is half of this:
At \(\alpha=0.05\), this test provides evidence in the prespecified positive direction. Using the ordinary \(\chi^2_1\) tail without the factor of one-half would give a different test and would not use the stated one-sided boundary reference distribution. The mixture calculation is justified here only because the example has one scalar directional constraint and assumes the required regularity.
When a Direction Is Chosen After Seeing the Data
If investigators inspect the estimate and then choose whichever one-sided alternative points toward it, the nominal one-sided error rate is not maintained. Under a symmetric null distribution, either tail can produce an estimate that looks favorable. Selecting the tail after observing the sign effectively allows a rejection in both directions while using a one-tail cutoff. A two-sided test, or a procedure that accounts for the selection, is needed instead.
Worked Example: The Cost of Choosing the Sign Post Hoc
Suppose a hypothetical covariate analysis gives \(\hat{\beta}=0.12\) and \(SE=0.08\). The positive direction was not specified before the result was examined. The observed statistic is
If a positive direction had been prespecified, the one-sided normal p-value would be \(P(Z\geq1.50)\approx0.0668\). But because the direction was selected after seeing that the estimate was positive, the relevant two-sided p-value is approximately \(2(0.0668)=0.1336\). At \(\alpha=0.05\), neither analysis provides evidence against the null. More generally, using a one-sided 0.05 cutoff in whichever direction the estimate happens to point can yield a null rejection probability near 0.10, rather than 0.05, under a symmetric continuous null.
Diagnostics, Comparisons, and Limitations
A directional test is useful only if the fitted model supports the approximation and the scientific direction is genuinely prespecified. Before interpreting the result, check whether the covariate is coded as intended, whether the relevant coefficient is identifiable, and whether the optimizer has reached a stable solution. For a likelihood-ratio comparison, verify that the models differ only by the intended restriction and that objective-function differences are not dominated by numerical noise. A coefficient estimate at the constraint boundary is an important diagnostic: it indicates that the data did not support a fitted effect in the tested direction.
The main alternatives answer different questions. A two-sided Wald or likelihood-ratio test asks whether there is evidence of an effect in either direction and is appropriate when direction was not specified in advance. A one-sided Wald test is computationally simple but depends on a normal approximation. A constrained likelihood-ratio test respects the directional parameter space and uses the mixture distribution for the single-boundary case, but requires reliable maximization under the constraint. A score test can assess a direction using information under the null, but its validity also depends on its approximation and implementation. None of these tests repairs weak design information or an implausible model.
A biological expectation should not be confused with a mathematical restriction. For example, clearance itself must be positive, and a log parameterization enforces that positivity; this does not imply that a covariate coefficient on log clearance must be positive or negative. Constraining that coefficient requires a separate scientific rationale. Likewise, a prespecified effect direction does not establish causality, eliminate confounding, or guarantee that the modeled covariate relationship is adequate.
Directional testing also does not remove the consequences of screening many covariates. If several effects are tested, the multiplicity strategy remains relevant even when each direction was specified. Finally, strong evidence in the predicted direction should be reported with the coefficient scale, covariate contrast, uncertainty, and units or ratio interpretation—not only with a one-sided p-value.
Common Pitfalls
- Choosing the tail that matches the estimate. This uses the data to define the hypothesis and understates the null error rate. Use a two-sided test or account for the selection.
- Forgetting reference-group coding. A negative coefficient can mean an increase for the scientifically relevant group if the indicator is reversed. State the coding and contrast.
- Using an ordinary chi-square reference for a one-sided boundary test. For one regular scalar constraint, use the specified mixture distribution, not automatically \(\chi^2_1\).
- Conflating parameter positivity with effect direction. A positive typical clearance does not require the covariate coefficient on log clearance to have either particular sign.
- Interpreting a p-value as the probability that the null is true. It is a tail probability calculated under the null model and the stated test procedure.
Check Your Understanding
Answer each question, then compare with the brief solutions.
- A model codes a drug indicator as 1 for treated and 0 for untreated, with coefficient \(\beta\) on log clearance. What sign represents a prespecified prediction that treatment reduces clearance?
- For a positive-direction Wald test, suppose \(\hat{\beta}=-0.30\) and \(SE=0.10\). What is the one-sided p-value approximately, and what does its direction imply?
- A one-constraint likelihood-ratio test gives \(LR=2.71\). The \(\chi^2_1\) upper-tail probability is 0.0997. What is the one-sided mixture p-value?
- Why is a one-sided p-value chosen after inspecting the sign of \(\hat{\beta}\) not a valid nominal one-sided test?
Solutions. (1) The prediction is \(\beta<0\), because the treated-to-untreated typical clearance ratio is \(\exp(\beta)\). (2) \(z=-0.30/0.10=-3.00\); for a positive-direction alternative, \(p=P(Z\geq-3.00)\approx0.9987\). The estimate points opposite to the prespecified direction, so it does not support a positive effect. (3) For a positive observed LR under the stated single-boundary conditions, \(p=0.5(0.0997)=0.0499\). (4) Selecting the tail that matches the observed sign permits rejection in either tail while using a one-tail cutoff; under a symmetric null this can approximately double the rejection probability. Use a two-sided test or account for selection.