BookmarkSubscribeRSS Feed
BethOlsen
Calcite | Level 5

Is the SAS SurveyMeans procedure the best procedure to use to compare a set of sample data to the population to show whether the sample is a true representation of the population?

4 REPLIES 4
PGStats
Opal | Level 21

It depends... What do you know about your population (e.g. census data) that might be compared to your sample?

PG

PG
BethOlsen
Calcite | Level 5

Yes. I collected demographic information for my samples that matches demographic categories collected by the U.S. Census Bureau (USCB). I want to know if the people that attended my data collection meetings demographically represent the population of the state. The state demographics are collected by USCB.

PGStats
Opal | Level 21

You could use proc univariate with option LOCATION= to test the mean or median of each continuous variable (age, for example) against the population mean or median. For categorical proportions (sex, for example) you could use proc freq with option TESTP= to compare the proportions in your sample to the population proportions.

hth

PG

PG
BethOlsen
Calcite | Level 5

thanks. Since all of the data I'm using from USCB is categorical, I'll try using proc freq with option TESTP=

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1490 views
  • 6 likes
  • 2 in conversation