# How do you perform the likelihood ratio test in SAS?

I want to compare model $A$ with 5 variables and model $B$ with 3 variables. I want to use the likelihood ratio test to do this. Note that this is logistic regression. How do I do this in SAS?

-
Is the three variable model a sub-model of the five variable model? If so, you can take the $-2\cdot{\rm loglike}$ from the outputs and do it manually, if nothing else. –  Macro Nov 16 '11 at 1:23
@Macro: And you use the intercept and covariates values of $-2 \log L$ for each model and divide by 2? –  Terry Nov 16 '11 at 1:38
No. Under the null, the difference between the $-2 \log L$ values follows a $\chi^{2}_{d}$ distribution (as $n \rightarrow \infty$) where $d$ is the number of parameters deleted to arrive at the submodel. You can use the CDF of that distribution to get the $p$-value. –  Macro Nov 16 '11 at 22:59