Thanks a lot for your help. I am surprised by the level of help I can get from this SAS community. Thank you! I have a few questions regarding the codes you provided. 1. I understood that you chose AR(1) after transforming the data by log. However, I don't see any code to test normality/homoscedasticity assumption except you included codes to observe the distribution of the data. I wonder how you test (or code) it. Or do you think I can use the same codes I used to test these two assumptions? 2. I see many places where it says "98375." Where is this number coming from? 3. In the second to the last commands where it starts with "proc mixed" I wonder if I can include "group*slc" next to your code in the model statement to check interaction effect. Or is the vertical line that divides independent variables already include meaning of any possible interactions among these variables? 4. In this proc mixed command, I do not see the empirical statement. As far as I know, if errors in your data is not normally distributed, you have to use "empirical" statement to accommodate it. Do I not need it because it is normally distributed after the log tranformation?? After writing above question, I read your explanation about why my data does not meet the requirement for empirical statement. You cited that "this approach assumes that the number of subjects per treatment is substantially greater than the number of times of observation. When the number of observation times is equal to or greater than the number of subjects per treatment, as often happens in agricultural experiments, the empirical estimate of Var(K'b) may actually be less than the model-based estimate and the resulting test-statistics may be wildly inflated." However, now I am curious isn't my data number of subject (24 for each group) exceeds the number of observation (10 for each condition)? Or is the degree too small? Or is this citation talking about the size of number of subject (48 altogether) and the number of observation at the whole study level (30*48=1440)? When you mentioned to use "ddfm=kr2", does it mean to replace empirical statement in proc mixed? When you said, "you need to specify the existence of 48 subjects rather than 24, which you can do by specifying subject=subjectid(group) rather than subject=subjectid.", do you mean when I try to replace "empirical statement" to "ddfm=kr2"? If the response mean could theoretically change with levels of Trial1, then Trial1 needs to be included as a fixed effect in the MODEL statement. --> Thanks for your advice! I see that you included them after model in both proc mixed and proc glimmix. 5. I see that glimmix provides really neat results. When I try to justify the reason for going with glimmix, I wonder if I can describe my study following the flow chart of CH1 in Littell, et al. (2006). How do you view my design? Response: Non-normal Errors: Correlated Random Effects: Yes Non-linearity: None Tool in SAS/STAT: Glimmix 6. Regarding the levels of the design: I view a little differently from yours, and I wonder if it will change any of the SAS codes. Subject (was not assigned randomly to Group, native English vs. native Mandarin speakers), Session within Subject (assigned--not randomly--to SLC), and RepeatedMeasure nested within Session within Subject (assigned--not randomly--to Trial1). Could you please help me to answer above questions further? Thanks so much again!
... View more