06-06-2016 08:34 AM
I am learning descriptive statistics using SAS. If we consider the dataset that we are working on as a population then how to know the population sd and variance through proc univariate or proc means. well what i can see is both procedures show the sd and variance of bessels correction. (not the population) if i am correct. Thanks in advance.
06-06-2016 09:37 AM
Both the PROC UNIVARIATE and the PROC MEANS (and the PROC SUMMARY) statement have a VARDEF= option, whose default value is DF (or df, "degrees of freedom," i.e. denominator n-1 in the definition of variance and related statistics such as standard deviation). Another valid value of this option is N (not case-sensitive either), which requests denominator n, as needed for calculating population variance, standard deviation, etc.
proc means vardef=n data=sashelp.class; var age; run;