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
This usage note should address your question I believe
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.