BookmarkSubscribeRSS Feed
carolet
Calcite | Level 5

I am conducting an analysis from a survey that used the following sampling frame:

It is a 2 stage sample where the first phase was done with 3 strata and 1 cluster with a varying inclusion probability (which I think would be a sampling rate) and the second phase was done with 1 strata (different from the other 3) and a different inclusion probability. How would I code this to create correct standard errors when creating means? I am really trying to figure out how to account for the 2 different probabilities for each stage in the rate=sampling_rate  statement. How would I set up that dataset? Or if I am completely wrong, please lead in a better direction!

 

I have this so far:

proc surveymeans data=rhs_food rate=sampling_rate;

title1 'Strata and Cluster specified';

title2 'Complex Sample';

strata region_num sub_region_num comm_size_num age_gender_group;

cluster residence_merge;

weight weight_final;

var food_secure;

run;

 

Thank-you so much for any help!

Carole

1 REPLY 1
SAS_Rob
SAS Employee

This usage note should address your question I believe

http://support.sas.com/kb/23/997.html 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1433 views
  • 0 likes
  • 2 in conversation