Hello SAS community!
I am very new to SAS and I have used R to run some linear mixed models. I now have to run the exact same in SAS but I have a few questions.
*For context, I am looking at interest variables to see the level of interest in using herbs and spices (interest1 variable) before and after (time variable) watching short and long (randomization variable) nutrition videos.*
1) After running this model in R using the code below, I tried to run it in SAS. I am not sure if this code is right, but the p values aren't the same (in R and in SAS) and some significant variables in R are not significant in SAS. Does anyone have recommendations on how to correct my code in SAS so I am able to get the same outputs in both softwares?
![gdr1_3-1720704506853.png gdr1_3-1720704506853.png](https://communities.sas.com/t5/image/serverpage/image-id/98312i318B58C6282213F3/image-size/medium?v=v2&px=400)
proc mixed data=results.cormick;
class record_id education time income randomization;
model interest1=time randomization age education sex income time*randomization /solution;
random record_id;
repeated /subject=record_id type=un;
run;
2) Also, I am not sure which p-values I should be reporting from these two tables. Does anyone have recommendations?
![gdr1_1-1720704256081.png gdr1_1-1720704256081.png](https://communities.sas.com/t5/image/serverpage/image-id/98310iE3B6A6B3A118DED2/image-size/medium?v=v2&px=400)
![gdr1_2-1720704290791.png gdr1_2-1720704290791.png](https://communities.sas.com/t5/image/serverpage/image-id/98311iE57FE12DC53E4DA5/image-size/medium?v=v2&px=400)
3) I am unable to get these graphs in SAS, does anyone know what code I could use?
![gdr1_4-1720704671203.png gdr1_4-1720704671203.png](https://communities.sas.com/t5/image/serverpage/image-id/98313iE8D62456301C85F8/image-size/medium?v=v2&px=400)
Thanks so much!