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