Howdy. Does anyone know of a way to script to compare mixed effects model mean structures with a likelihood ratio test in SAS? I know SAS spits out -2 Log Likelihoods in proc mixed (with method=ml), and I can run two models (a simple example with linear models: one with two main effects [random intercept, let's say]; and one with the two main effects and an interaction term [random slope + intercept]) then use each -2 Log Likelihood to construct a likelihood ratio statistic and test against chi-squared, but I would think there has to be some not-too-difficult way to script such a test rather than scrolling back through the outputs and constructing the test statistic "by hand." I searched about a bit already, but didn't find anything helpful, except a fairly convoluted macro. Any assistance will be much appreciated. Thanks kindly - d.G.
... View more