I confess this isn't really my area of expertise but there's a technical note with a macro you can download here and a SAS Global Forum paper covering the subject here
... View more
I'm not sure about "base on the residuals," but likelihood ratio tests for comparing nested models can be produced as discussed in Example 4 of this note and using the Vuong macro that is linked to in that example.
... View more