BookmarkSubscribeRSS Feed
cmcquain
Fluorite | Level 6

Enterprise Edition is using the sample size calculation for standard deviation.  How do I force it to use the population standard deviation formula?

1 REPLY 1
FreelanceReinh
Jade | Level 19

Hello @cmcquain,

 

So you're computing a standard deviation from numeric values in a dataset.

 

If you're using the "Summary Statistics" task in SAS Enterprise Guide, change the "Divisor for standard deviation ..." from "Degrees of freedom" to "Number of observations" as shown below.

EG_vardef.png

 

However, if you're using a procedure such as PROC MEANS, PROC SUMMARY or PROC UNIVARIATE, then use the VARDEF=n option in the PROC ... statement. Here's an example using PROC MEANS:

proc means data=sashelp.class std vardef=n;
var age;
run;

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1 reply
  • 647 views
  • 3 likes
  • 2 in conversation