Glad you are studying the problem in such detail. Notice that I started my previous post with "If you want a detailed explanation, you need to read some textbooks, or parts of textbook. I doubt if postings will go into the details." You misunderstood some of my comments, maybe because I couldn't write enough. Probably I was too casual in a few places. I can only comment on a few of your statements here. GLM does a purely fixed-effects analysis, with post-model-fitting adjustments to get the random effects variances. Of course, you must use the right code (test option on random statement) to get the proper mean squares and F tests (the defaults clearly are wrong, as you point out). GLM is not capable of getting the right standard errors in many cases (with any options), especially when the SEs involve combinations of variances. This is why the estimate and contrast statements are totally wrong in GLM. GLM should be avoided when there are random effects. This was one of the points I was trying to make. When you use method=type3 in MIXED, you are getting, in part, the equivalence of the approach in GLM (assuming you used the right options in GLM), but it is not necessarily done in the same way. The expected mean square table, F statistics (based on the mean squares), and P values agree for the two procedures (once again, assuming you have the right code for GLM and method=type3 in MIXED). This is true for your example (by the way, you misspelled product in the interaction term in GLM). This is a reason why I said you were getting a fixed-type analysis, but clearly it is not an actual fixed effect analysis in MIXED. MIXED is much more sophisticated than GLM; MIXED is doing an actual mixed-effect analysis for all the method= options we have been discussing (when you have random statements). Sorry if I implied otherwise. Because MIXED knows how to use the random effects, you obviously can get a G-side covariance matrix. You are getting appropriate SEs, ESTIMATEs, and CONTRASTs with MIXED, but not necessarily the best choices with the method=type3 analysis (the latter may be open to some interpretation). Because MIXED is properly using random-effects terms as random effects, you get EBLUPs, and so on. Obviously, these do not exist when using GLM (one of many reasons not to use GLM). There is no point even trying to recover anything like an EBLUP in GLM. MIXED is a great procedure, and one you should be using (whether or not you use expected mean squares). The book I mentioned (SAS for Mixed Models, second edition) has several examples where method=type3 is utilized for interesting purposes. The limitation is that the method is appropriate for only a narrow class of mixed models. I would argue that likelihood-based methods are better for other reasons, but others could disagree. I did not bring up anything about narrow or broad inference. I think you can do either with the type3 method, with the right syntax. I don’t know if anyone has evaluated the effects of the model-fitting method on the accuracy of the results for broad and narrow inference.
... View more