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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 481 views
  • 1 like
  • 3 in conversation