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!

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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