<?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: Can we use the 'keep' statement for survey data in SAS to create subsets? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Can-we-use-the-keep-statement-for-survey-data-in-SAS-to-create/m-p/819175#M40499</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for your prompt response.&lt;/P&gt;
&lt;P&gt;My main concern was about the&amp;nbsp; weights. So the weights are not affected as long as I am not creating a subset within a variable, right?&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jun 2022 17:04:54 GMT</pubDate>
    <dc:creator>UcheOkoro</dc:creator>
    <dc:date>2022-06-20T17:04:54Z</dc:date>
    <item>
      <title>Can we use the 'keep' statement for survey data in SAS to create subsets?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-we-use-the-keep-statement-for-survey-data-in-SAS-to-create/m-p/819173#M40497</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Can one use the ‘keep’ statement to select variables of interest from a survey data (particularly BRFSS data) into a subset dataset?&lt;/P&gt;
&lt;P&gt;The following is my SAS code.&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; Data BRFSS2018b3;
 Set BRFSS2018b;
 SEX=SEX1;
 keep IYEAR SEQNO _AGE80 _STSTR _psu _LLCPWT MEDCOST HLTHPLN1  EMPLOY1 INCOME2 _EDUCAG EMPLOY1  _RACE SEX;
;RUN;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Jun 2022 16:54:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-we-use-the-keep-statement-for-survey-data-in-SAS-to-create/m-p/819173#M40497</guid>
      <dc:creator>UcheOkoro</dc:creator>
      <dc:date>2022-06-20T16:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use the 'keep' statement for survey data in SAS to create subsets?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-we-use-the-keep-statement-for-survey-data-in-SAS-to-create/m-p/819174#M40498</link>
      <description>&lt;P&gt;Yes.&lt;/P&gt;
&lt;P&gt;Basic response would be "try it an see".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 16:58:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-we-use-the-keep-statement-for-survey-data-in-SAS-to-create/m-p/819174#M40498</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-06-20T16:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use the 'keep' statement for survey data in SAS to create subsets?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-we-use-the-keep-statement-for-survey-data-in-SAS-to-create/m-p/819175#M40499</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for your prompt response.&lt;/P&gt;
&lt;P&gt;My main concern was about the&amp;nbsp; weights. So the weights are not affected as long as I am not creating a subset within a variable, right?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 17:04:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-we-use-the-keep-statement-for-survey-data-in-SAS-to-create/m-p/819175#M40499</guid>
      <dc:creator>UcheOkoro</dc:creator>
      <dc:date>2022-06-20T17:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use the 'keep' statement for survey data in SAS to create subsets?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-we-use-the-keep-statement-for-survey-data-in-SAS-to-create/m-p/819177#M40501</link>
      <description>You need to include the weights for the correct downstream analysis.</description>
      <pubDate>Mon, 20 Jun 2022 17:25:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-we-use-the-keep-statement-for-survey-data-in-SAS-to-create/m-p/819177#M40501</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-06-20T17:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can we use the 'keep' statement for survey data in SAS to create subsets?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Can-we-use-the-keep-statement-for-survey-data-in-SAS-to-create/m-p/819179#M40502</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 17:26:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Can-we-use-the-keep-statement-for-survey-data-in-SAS-to-create/m-p/819179#M40502</guid>
      <dc:creator>UcheOkoro</dc:creator>
      <dc:date>2022-06-20T17:26:35Z</dc:date>
    </item>
  </channel>
</rss>

