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

Hello,

In a proc mixed how do I classify the type of variance structure I want to use (Unstr, variance comp, comp symm, etc)?

Here's my code. 

 

PROC MIXED DATA = work.pracL;
CLASS ID;
MODEL logmemI = demind age age*demind spline gender ses/solution cl outpm= work.plot1;
RANDOM Intercept age/SUBJECT=ID ;
Estimate "Hyp 1 age slope for healthy individuals B2" age 1/cl;
Estimate "Hyp 3A Slope in MCI prior to chgpt B2+B3" age 1 age*demind 1/cl;
Estimate "Hyp 3B Slope in MCI after chgpt B2+B3+B4" age 1 age*demind 1 spline 1/cl;
Estimate "Hyp 4 Comparing slopes between Healthy and MCI before chgpt B3" age*demind 1/cl;
Estimate "Hyp 5 Comparing the slopes before and after chgpt for MCI B4" spline 1/cl;
Estimate "Hyp 6 Comparing slopes between Healthy and MCI after chgpt B3+B4" age*demind 1 spline 1/cl;
run;
title1; title2; title3; title4; title5; title6;

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
DannyModlin
SAS Employee

Greetings.

To choose which variance structure to use include the TYPE= sub-option in the RANDOM line.

For example, RANDOM .... / TYPE=UN. This would be unstructured.

Hope this helps.

 

View solution in original post

2 REPLIES 2
DannyModlin
SAS Employee

Greetings.

To choose which variance structure to use include the TYPE= sub-option in the RANDOM line.

For example, RANDOM .... / TYPE=UN. This would be unstructured.

Hope this helps.

 

ksumbundu
Calcite | Level 5

Thank you!

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 16. 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
  • 2 replies
  • 644 views
  • 0 likes
  • 2 in conversation