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;

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 325 views
  • 3 likes
  • 2 in conversation