In general, the tested hypothesis can be written as
![\[ H_{0}: \mb{h} (\theta ) = 0 \]](images/etsug_hpqlim0110.png)
where
is an r
1 vector-valued function of the parameters
given by the r expressions that are specified in the TEST statement.
Let
be the estimate of the covariance matrix of
. Let
be the unconstrained estimate of
and
be the constrained estimate of
such that
. Let
![\[ A(\theta ) = {{\partial } h(\theta )}/{{\partial } \theta }~ |_{\hat{\theta }} \]](images/etsug_hpqlim0118.png)
Using this notation, the test statistics for the three types of tests are computed as follows.
The Wald test statistic is defined as
![\[ W = h^{'}(\hat{\theta })\big \lgroup { {A(\hat{\theta }) \hat{V} A^{'} (\hat{\theta })} }\big \rgroup ^{-1} h(\hat{\theta }) \]](images/etsug_hpqlim0119.png)
The Lagrange multiplier test statistic is
![\[ LM = {\lambda }^{'} A(\tilde{\theta }) \tilde{V} A^{'}(\tilde{\theta }) {\lambda } \]](images/etsug_hpqlim0120.png)
where
is the vector of Lagrange multipliers from the computation of the restricted estimate
.
The likelihood ratio test statistic is
![\[ LR = 2 \left({L(\hat{\theta }) - L(\tilde{\theta })}\right) \]](images/etsug_hpqlim0122.png)
where
represents the constrained estimate of
and
is the concentrated log-likelihood value.
The following statements use the TEST statement to perform a likelihood ratio test:
proc hpqlim;
model y = x1 x2 x3;
test x1 = 0, x2 * .5 + 2 * x3 = 0 /lr;
run;
For more information, see the section Tests on Parameters.