<?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: DOMAIN vs WHERE Statement in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/DOMAIN-vs-WHERE-Statement/m-p/420686#M22131</link>
    <description>&lt;P&gt;The DOMAIN statement&amp;nbsp;&lt;SPAN&gt;requests analysis for each level/domain in your domain variable. In your case you have two domains: 1(Age 18-45) and 0(outside age 18-45).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The where statement simply excludes observations where the condition in the where statement is not satisfied.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Provide some sample of your data if you want a more usable answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also consult the &lt;A href="http://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_introsamp_sect008.htm&amp;amp;docsetVersion=14.2&amp;amp;locale=en" target="_self"&gt;PROC SURVEYLOGISTIC Documentation&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Dec 2017 07:46:26 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2017-12-13T07:46:26Z</dc:date>
    <item>
      <title>DOMAIN vs WHERE Statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/DOMAIN-vs-WHERE-Statement/m-p/420657#M22130</link>
      <description>&lt;DIV class="sasSource"&gt;I am working with a dataset where I only want ages 18-45, so I created a flag for it. But when I seem to run a surveylogistic with it, I get this WARNING with the DOMAIN statment;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;61&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;62 proc surveylogistic data=assign ;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;63 repweight rakedw1--rakedw80 / jkcoefs=1;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;64 weight rakedw0;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;65 class fruitveg (ref="ALWAYS") age (ref='Ages 18 to 26') ethn (ref="White") BMI (ref='UNDERWEIGHT/NORMAL WEIGHT') sugar&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;65 ! (ref='0 to 100 sugar drinks per month') exercise (ref="Less than 30 min walking/week") educ (ref="Less than High School")&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;65 ! income (ref="0 tp 50,000") / param=ref ;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;66 model diabetesoutcome(ref= "NO") = fruitveg age ethn BMI sugar exercise educ income;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;67 domain flag;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;68 format diabetesoutcome diabetesoutcomex. fruitveg fruitvegx. age agex. gender genderx. ethn ethnx. BMI BMIx. sugar&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;68 ! sugarx. exercise exercisex. smoke smokex. educ educx. income incomex. geo geox.;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;69 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROC SURVEYLOGISTIC is modeling the probability that diabetesoutcome='TYPE 2'.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Convergence was not attained in domain flag=1.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: No analysis for domain flag=1.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Convergence criterion (GCONV=1E-8) satisfied.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROC SURVEYLOGISTIC is modeling the probability that diabetesoutcome='TYPE 2'.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Convergence criterion (GCONV=1E-8) satisfied.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE SURVEYLOGISTIC used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 3.03 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 3.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;But when I switch the DOMAIN statement to a WHERE statement I do not get a WARNING, and I am trying to understand why that is and whether it will&amp;nbsp;affect my results. Thank you!&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Dec 2017 02:10:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/DOMAIN-vs-WHERE-Statement/m-p/420657#M22130</guid>
      <dc:creator>kmardinian</dc:creator>
      <dc:date>2017-12-13T02:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: DOMAIN vs WHERE Statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/DOMAIN-vs-WHERE-Statement/m-p/420686#M22131</link>
      <description>&lt;P&gt;The DOMAIN statement&amp;nbsp;&lt;SPAN&gt;requests analysis for each level/domain in your domain variable. In your case you have two domains: 1(Age 18-45) and 0(outside age 18-45).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The where statement simply excludes observations where the condition in the where statement is not satisfied.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Provide some sample of your data if you want a more usable answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also consult the &lt;A href="http://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_introsamp_sect008.htm&amp;amp;docsetVersion=14.2&amp;amp;locale=en" target="_self"&gt;PROC SURVEYLOGISTIC Documentation&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 07:46:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/DOMAIN-vs-WHERE-Statement/m-p/420686#M22131</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-12-13T07:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: DOMAIN vs WHERE Statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/DOMAIN-vs-WHERE-Statement/m-p/420835#M22136</link>
      <description>&lt;P&gt;Unless the sample sizes of the age groups are fixed, that is part of your study design, then you should not use a WHERE statement.&amp;nbsp;&amp;nbsp;My suggestion to avoid the issue is to set all the response variables for the group that you are NOT interested in to missing and then use the NOMCAR option on the SURVEYLOGISTIC statement.&amp;nbsp; This will give you a valid subgroup analysis (since the NOMCAR option treats missing values as a subgroup) and fit only the model you are interested in.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2017 15:30:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/DOMAIN-vs-WHERE-Statement/m-p/420835#M22136</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2017-12-13T15:30:23Z</dc:date>
    </item>
  </channel>
</rss>

