Hello! I'm using proc genmod for building GLM models. In variable selection we generally use LR test with type 3 statistics. As I understand the LR test is working the following way: D-deviance which is distributed Chi-Square when number of degrees of freedom is equal to number of levels in investigated variable minus 1. That's true until a model includes interaction. Suppose a model consists of 2 variables and their interaction: A,B,A*B So, the LR test for variable A is supposed to be: but I found occasionally that deviance is equal for 2 models: B,A*B and A,B,A*B so this formula cannot be applied in this case If anybody knows how SAS computes LR statistics for model with interaction? This very important to me and I will be very appreciate. Thanks a lot, Alex
... View more