BookmarkSubscribeRSS Feed
PsycResearcher
Calcite | Level 5

Hi all,

I have a question regarding PROC MIXED.

I am setting up a linear mixed model as follow:

PROC MIXED data=work.sample covtest;

     class v1 v2;

     model dv = / solution;

     random intercept / subject=v1 solution v vcorr;

     random intercept / subject=v2 solution v vcorr;

run;

v1 and v2 are categorical variables, each having more than 100 categories.

Question 1:

I assume that I have set v1 and v2 to be uncorrelated. Am I right?

Question 2:

The analysis takes me a day to complete. Is there anyway to make the syntax more efficient so that it will run faster?

Question 3:

How can I obtain the correlation between v1 and v2? Which covariance structure should I choose? (I am only interested in (1) whether v1 and v2 are correlated, and (2) the magnitude of correlation between v1 and v2.

Thank you very much for your help!

Chester

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 0 replies
  • 1193 views
  • 0 likes
  • 1 in conversation