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

What is the difference between how standard error is calculated in proc ttest vs. proc genmod dist=normal.

I ran the following codes:

  • proc ttest; class group; var age; run;
  • proc genmod; class group; model age=group / dist=normal; lsmeans group; run;

The same means were produced but the standard errors were different.  Anyone know why?

 

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

GENMOD uses maximum likelihood to estimate the scale parameter. TTEST uses a pooled estimate of variance. These are not the same.

--
Paige Miller

View solution in original post

3 REPLIES 3
Ksharp
Super User
I guess the distribution is different . T distribution V.S. Normal distribution.
PaigeMiller
Diamond | Level 26

GENMOD uses maximum likelihood to estimate the scale parameter. TTEST uses a pooled estimate of variance. These are not the same.

--
Paige Miller
best_means
Calcite | Level 5

Thanks for the quick reply.  This is helpful as "The PROC GENMOD scale parameter, in the case of the normal distribution, is the standard deviation."

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 971 views
  • 0 likes
  • 3 in conversation