BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
olabuh
Calcite | Level 5

I am analyzing a survey data with a raw sample size of about 2.7 million, when I run the proc survey procedures, the sample size comes down to about 2 million and I am sure this is not explained by the missing data because I ran the proc freq and the missing data were very small and the sample size with the normal proc procedures was 2.7 million. Does anyone know why?

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Watts
SAS Employee

If you're specifying design variables (STRATA and/or CLUSTER variables), maybe some of these values are missing. Observations with missing STRATA or CLUSTER values are excluded from the analysis unless you specify the MISSING option. Also, observations with missing or negative WEIGHT values are excluded. There's more information in the survey proc documentation section Missing Values

View solution in original post

3 REPLIES 3
Kurt_Bremser
Super User

See if you can observe the effect with a small subset (~100 observations) of your data. If yes, post that here (in a data step with datalines, see my footnotes), and your code, so we can recreate the issue.

PaigeMiller
Diamond | Level 26

@olabuh wrote:

I am analyzing a survey data with a raw sample size of about 2.7 million, when I run the proc survey procedures, the sample size comes down to about 2 million and I am sure this is not explained by the missing data because I ran the proc freq and the missing data were very small and the sample size with the normal proc procedures was 2.7 million. Does anyone know why?

Thanks.


What specific analysis are you performing? What specific SAS PROCs are you using?

--
Paige Miller
Watts
SAS Employee

If you're specifying design variables (STRATA and/or CLUSTER variables), maybe some of these values are missing. Observations with missing STRATA or CLUSTER values are excluded from the analysis unless you specify the MISSING option. Also, observations with missing or negative WEIGHT values are excluded. There's more information in the survey proc documentation section Missing Values

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 3 replies
  • 1145 views
  • 0 likes
  • 4 in conversation