BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
nlpurumi
Obsidian | Level 7

I want to maintain all the results that come out after running following codes. However, I want to modify the codes to generate a figure of interaction of the independent variables. Could you please help? Thank you.

 

proc glimmix data=a1.prediss1 plots=residualpanel(conditional marginal);
class phase_info1 Phoneme_stress subject;
model ResidualError_Sum= phase_info1|Phoneme_stress/solution dist=gamma;
output out=a1.predata pred=pred resid=r;
random intercept phase_info1|Phoneme_stress/ subject=subject;
run;

1 ACCEPTED SOLUTION

Accepted Solutions
sld
Rhodochrosite | Level 12 sld
Rhodochrosite | Level 12

Try

 

lsmeans phase_info1*Phoneme_stress / plot=meanplot(sliceby=phase_info1 join cl);

Before you go too far down this path, be sure that your RANDOM statement is specifying what you want it to specify: it currently identifies a variance among subjects, a variance among units defined by subject * phase_info1, a variance among units defined by Phoneme_stress * subject, and a variance among units defined by phase_info1 * Phoneme_stress * subject. Maybe that makes sense for your design, but maybe it does not. 

 

The name of the response variable (ResidualError_Sum) is a bit suspicious. Is your response a residual from some other model that you've fit?

 

View solution in original post

2 REPLIES 2
sld
Rhodochrosite | Level 12 sld
Rhodochrosite | Level 12

Try

 

lsmeans phase_info1*Phoneme_stress / plot=meanplot(sliceby=phase_info1 join cl);

Before you go too far down this path, be sure that your RANDOM statement is specifying what you want it to specify: it currently identifies a variance among subjects, a variance among units defined by subject * phase_info1, a variance among units defined by Phoneme_stress * subject, and a variance among units defined by phase_info1 * Phoneme_stress * subject. Maybe that makes sense for your design, but maybe it does not. 

 

The name of the response variable (ResidualError_Sum) is a bit suspicious. Is your response a residual from some other model that you've fit?

 

nlpurumi
Obsidian | Level 7

Thank you again, Sid.

Yes, the model includes phase_info1, Phoneme_stress, and phase_info1 * Phoneme_stress in the final equation in both fixed and random effects, because phase_info1 and Phoneme_stress are all first level variables and I am interested in the interaction of these two variables.

 And no, my dependent variable is just an error measurement from acoustic signal, so it is nothing to do with stat analysis.

Thanks for checking.

 

Please let me know if anything else can be a problem. Thank you!

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1228 views
  • 0 likes
  • 2 in conversation