<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Sample weights, strata, and cluster for complex surveys in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-weights-strata-and-cluster-for-complex-surveys/m-p/952549#M47657</link>
    <description>&lt;P&gt;I am not familiar with HINTS data in any form. Likely each cycle was weighted to a population total then I would expect most methods of renaming variables and combining to have a "population" estimate of roughly N times the population where N is the number of "cycles" assuming no extreme changes in the population between each cycle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One basic approach is to scale each cycle to a proportion of a chosen population total.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With BRFSS data, a large scale complex survey I have worked with, one approach is:&lt;/P&gt;
&lt;PRE&gt;To combine multiple years of Behavioral Risk Factor Surveillance System (BRFSS) data, &lt;BR /&gt;you can adjust the weight variable proportionally based on the sample sizes for each year:

    Determine the sample size for each year
    Add the sample sizes together
    Calculate the proportion for each year by dividing the sample size for that year by the total sample size
    Adjust the weight for each year by multiplying the original weight by the proportion for that year 
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Dec 2024 18:13:24 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2024-12-04T18:13:24Z</dc:date>
    <item>
      <title>Sample weights, strata, and cluster for complex surveys</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-weights-strata-and-cluster-for-complex-surveys/m-p/952410#M47653</link>
      <description>&lt;P&gt;I am analyzing data using HINTS 5 cycles 3 and 4, which I stacked to get 9,303 observations. Weight and variance for the cycles according to the documentation were:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Cycle 4:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;strata VAR_STRATUM;&lt;/P&gt;&lt;P&gt;cluster VAR_CLUSTER;&lt;/P&gt;&lt;P&gt;weight PERSON_FINWT0;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;Cycle 3&lt;/STRONG&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;strata VAR_STRATUM;&lt;/P&gt;&lt;P&gt;cluster VAR_CLUSTER;&lt;/P&gt;&lt;P&gt;weight NWGT0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because the weight variables were different for each cycle, I created a common weighted variable for the two (final_weight)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, there was no unique identifier for the HINTS data, so I created one using the household IDs and then I merged the datasets.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is how I applied the code up to this point:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/* Step 1: Recode HeardHPVVaccine2 and Gender and Include Other Variables for Cycle 3 */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; cycle3_recoded;&lt;/P&gt;&lt;P&gt;set tmp1.hints5_cycle3_public;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Recode Gender */&lt;/P&gt;&lt;P&gt;if GenderC = &lt;STRONG&gt;1&lt;/STRONG&gt; then Gender = &lt;STRONG&gt;1&lt;/STRONG&gt;; /* Male */&lt;/P&gt;&lt;P&gt;else if GenderC = &lt;STRONG&gt;2&lt;/STRONG&gt; then Gender = &lt;STRONG&gt;2&lt;/STRONG&gt;; /* Female */&lt;/P&gt;&lt;P&gt;else Gender = &lt;STRONG&gt;.&lt;/STRONG&gt;; /* Missing values */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Recode HeardHPVVaccine2 */&lt;/P&gt;&lt;P&gt;if SEEKCAN = &lt;STRONG&gt;1&lt;/STRONG&gt; then HeardHPVVaccine2 = &lt;STRONG&gt;1&lt;/STRONG&gt;; /* Yes */&lt;/P&gt;&lt;P&gt;else if SEEKCAN = &lt;STRONG&gt;2&lt;/STRONG&gt; then HeardHPVVaccine2 = &lt;STRONG&gt;2&lt;/STRONG&gt;; /* No */&lt;/P&gt;&lt;P&gt;else if SEEKCAN in (-&lt;STRONG&gt;9&lt;/STRONG&gt;, -&lt;STRONG&gt;7&lt;/STRONG&gt;) then HeardHPVVaccine2 = &lt;STRONG&gt;.&lt;/STRONG&gt;; /* Missing values */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Rename weight variable */&lt;/P&gt;&lt;P&gt;final_weight = NWGT0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Add survey cycle identifier */&lt;/P&gt;&lt;P&gt;surveycycle = &lt;STRONG&gt;3&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/* Step 2: Recode HeardHPVVaccine2 and Gender and Include Other Variables for Cycle 4 */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; cycle4_recoded;&lt;/P&gt;&lt;P&gt;set tmp2.hints5_cycle4_public;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Recode Gender */&lt;/P&gt;&lt;P&gt;if SelfGender = &lt;STRONG&gt;1&lt;/STRONG&gt; then Gender = &lt;STRONG&gt;1&lt;/STRONG&gt;; /* Male */&lt;/P&gt;&lt;P&gt;else if SelfGender = &lt;STRONG&gt;2&lt;/STRONG&gt; then Gender = &lt;STRONG&gt;2&lt;/STRONG&gt;; /* Female */&lt;/P&gt;&lt;P&gt;else Gender = &lt;STRONG&gt;.&lt;/STRONG&gt;; /* Missing values */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Recode HeardHPVVaccine2 */&lt;/P&gt;&lt;P&gt;if ELECTRO = &lt;STRONG&gt;1&lt;/STRONG&gt; then HeardHPVVaccine2 = &lt;STRONG&gt;1&lt;/STRONG&gt;; /* Yes */&lt;/P&gt;&lt;P&gt;else if ELECTRO = &lt;STRONG&gt;2&lt;/STRONG&gt; then HeardHPVVaccine2 = &lt;STRONG&gt;2&lt;/STRONG&gt;; /* No */&lt;/P&gt;&lt;P&gt;else if ELECTRO = -&lt;STRONG&gt;9&lt;/STRONG&gt; then HeardHPVVaccine2 = &lt;STRONG&gt;.&lt;/STRONG&gt;; /* Missing values */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Rename weight variable */&lt;/P&gt;&lt;P&gt;final_weight = PERSON_FINWT0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Add survey cycle identifier */&lt;/P&gt;&lt;P&gt;surveycycle = &lt;STRONG&gt;4&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/* Step 3: Stack the Two Cycles */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; stacked;&lt;/P&gt;&lt;P&gt;set cycle3_recoded cycle4_recoded;&lt;/P&gt;&lt;P&gt;newID = CATS(HHID, surveycycle);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/* Step 5: Extract Variables Needed for the Research Question */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data&lt;/STRONG&gt; selected;&lt;/P&gt;&lt;P&gt;set stacked;&lt;/P&gt;&lt;P&gt;keep RaceEthn5 AgeGrpA EducA&amp;nbsp; MaritalStatus HeardHPV HPVCauseCancer_Cervical HeardHPVVaccine2 ExplainedClearly SpentEnoughTime Gender final_weight VAR_STRATUM VAR_CLUSTER;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After going through all the above, I decided to use a means procedure to look at the combined sampling weight (final_weight), with this code:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc means data=recode1 n min mean max sum;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;var final_weight;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and I realized it was overly high (&lt;STRONG&gt;1010026682&lt;/STRONG&gt;), greater than the US population (&lt;STRONG&gt;335,893,238&lt;/STRONG&gt;). Will this be the same with the strata and cluster variables?&amp;nbsp;&lt;/P&gt;&lt;P&gt;What should I do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 10:19:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sample-weights-strata-and-cluster-for-complex-surveys/m-p/952410#M47653</guid>
      <dc:creator>Abrefah</dc:creator>
      <dc:date>2024-12-03T10:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sample weights, strata, and cluster for complex surveys</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Sample-weights-strata-and-cluster-for-complex-surveys/m-p/952549#M47657</link>
      <description>&lt;P&gt;I am not familiar with HINTS data in any form. Likely each cycle was weighted to a population total then I would expect most methods of renaming variables and combining to have a "population" estimate of roughly N times the population where N is the number of "cycles" assuming no extreme changes in the population between each cycle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One basic approach is to scale each cycle to a proportion of a chosen population total.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With BRFSS data, a large scale complex survey I have worked with, one approach is:&lt;/P&gt;
&lt;PRE&gt;To combine multiple years of Behavioral Risk Factor Surveillance System (BRFSS) data, &lt;BR /&gt;you can adjust the weight variable proportionally based on the sample sizes for each year:

    Determine the sample size for each year
    Add the sample sizes together
    Calculate the proportion for each year by dividing the sample size for that year by the total sample size
    Adjust the weight for each year by multiplying the original weight by the proportion for that year 
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 18:13:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Sample-weights-strata-and-cluster-for-complex-surveys/m-p/952549#M47657</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-12-04T18:13:24Z</dc:date>
    </item>
  </channel>
</rss>

