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;

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 403 views
  • 3 likes
  • 2 in conversation