BookmarkSubscribeRSS Feed
ElaineLiu
Calcite | Level 5

Hi everyone,

 

I want to do two sample ttest with standard error cluster. I googled that proc mixed would work, but I understand that it also has fixed effect. But I don't want fixed effect, I only want error cluster. 

 

My data looks like this

fundid date var1 group

 

group is dummy variable.

I want to cluster at fund lever, that is fundid

my code is 

proc mixed;

class fundid group;

model var1=group;

random fundid;

ismeans group/diff;

run;

 

Can you let me know whether it's correct? do I have fixed effect included in the test?

Thank!

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 436 views
  • 0 likes
  • 1 in conversation