I need to create SAS code for the following SPSS code-- It is 2 stage sampling --- does anyone know how to program this in SAS?
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<SPSSComplexSamples version="1.0">
<Header copyright="Copyright (c) SPSS Inc., 2006. All Rights Reserved."/>
<AnalysisDesign SRSestimator="wor" numberOfStages="2">
<AnalysisStage estimationMethod="equal_wor" label="Stage 1" stageNumber="1">
<StrataVarList numberOfVariables="3">
<Variable name="region_num"/>
<Variable name="sub_region_num"/>
<Variable name="comm_size_num"/>
</StrataVarList>
<ClusterVarList numberOfVariables="1">
<Variable name="residence_merge"/>
</ClusterVarList>
<IncProb>
<Variable name="inc_prob_1"/>
</IncProb>
</AnalysisStage>
<AnalysisStage estimationMethod="equal_wor" label="Stage 2" stageNumber="2">
<StrataVarList numberOfVariables="1">
<Variable name="age_gender_group"/>
</StrataVarList>
<IncProb>
<Variable name="inc_prob_2"/>
</IncProb>
</AnalysisStage>
<Weight>
<Variable name="weight_final"/>
</Weight>
</AnalysisDesign>
</SPSSComplexSamples>
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.
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.