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