BookmarkSubscribeRSS Feed
amng
Calcite | Level 5

I'm running some analyses using procsurvey logistic, with a clustering variable to adjust for whether respondents are part of the same family (some are twins/siblings). Why does the sample size decrease when using the procsurvey command, and is there a minimum sample size that should be met when using the proc survey commands? Thanks in advance.

2 REPLIES 2
ballardw
Super User

You would have to show us the output you are using that show different "sample size" and likely the log from both calls to the procedure to have a chance to address what you are seeing.

 

Typically the single most likely cause of reduced sample size using the same data set is to place something in the model statement that has missing values. By default all observations with missing values for any of the variables on the model, cluster or strata statements are not used and would report fewer observations used. So if you added code to use a cluster variable and any records are have missing values for the cluster variable they would be excluded.

 

 

PaigeMiller
Diamond | Level 26

@amng 

 

Could you please modify the title of your ORIGINAL post? There is no PROC SURVEY, and the original post should have

 

PROC SURVEYLOGISTIC question

 

as the title

 

Thanks

--
Paige Miller

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 2 replies
  • 636 views
  • 1 like
  • 3 in conversation