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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 1301 views
  • 0 likes
  • 2 in conversation