<?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: Proc glimmix &amp; where statement in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-glimmix-where-statement/m-p/139300#M37290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whenever I have used a where statement with SAS procedures, it has always been with syntax like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;where notmissing=0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Try that with Glimmix and let know if it works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Brandy&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2014 19:07:04 GMT</pubDate>
    <dc:creator>brsinco</dc:creator>
    <dc:date>2014-06-12T19:07:04Z</dc:date>
    <item>
      <title>Proc glimmix &amp; where statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-glimmix-where-statement/m-p/139298#M37288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a data set with 7 potential covariates. At the moment I am testing each one individually against the outcome variable. I am using AIC/BIC to see which covariate fits the model best and building from there. The problem that I am having is that most variables have some missing responses. I have created a new variable called notmissing which codes a row as notmissing=0 if all covariates have a value for that row or notmissing=1 for the rows where one or more covariates has a missing value. What I want to do is run the proc glimmix and include a statement that only includes rows where notmissing=0 so that I can use the AIC/BIC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code I have written:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;proc glimmix data=cmr.u5mrfull method=mspl ;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;where=(notmissing=0);&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;class country regionID;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;model u5mr = regionID year ltuberprev/ dist=normal link=id dfm=sat;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;random intercept year / subject=country type=chol;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;run;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;I have run it for each variable but the number of observation used is different in each analysis so this makes me think the code hasn't worked properly or there is something wrong with the notmissing variable but I am not sure which one is causing the problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 08:34:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-glimmix-where-statement/m-p/139298#M37288</guid>
      <dc:creator>janie99</dc:creator>
      <dc:date>2014-06-12T08:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc glimmix &amp; where statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-glimmix-where-statement/m-p/139299#M37289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;I have run it for each variable but the number of observation used is different in each analysis so this makes me think the code hasn't worked properly or there is something wrong with the notmissing variable but I am not sure which one is causing the problem&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;You probably need to show us how your are creating the notmissing variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I am not familiar with the syntax for the WHERE statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where=(notmissing=0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I always use something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where notmissing=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc glimmix data=cmr.u5mrfull(where=(notmissing=0)) method=mspl ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 14:48:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-glimmix-where-statement/m-p/139299#M37289</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2014-06-12T14:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proc glimmix &amp; where statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-glimmix-where-statement/m-p/139300#M37290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whenever I have used a where statement with SAS procedures, it has always been with syntax like&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;where notmissing=0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Try that with Glimmix and let know if it works.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Brandy&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 19:07:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-glimmix-where-statement/m-p/139300#M37290</guid>
      <dc:creator>brsinco</dc:creator>
      <dc:date>2014-06-12T19:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc glimmix &amp; where statement</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-glimmix-where-statement/m-p/139301#M37291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys! There was a problem with the syntax of the where statement. As suggested I fixed it up to be:&lt;/P&gt;&lt;P&gt;where notmissing=0;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 21:57:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-glimmix-where-statement/m-p/139301#M37291</guid>
      <dc:creator>janie99</dc:creator>
      <dc:date>2014-06-12T21:57:05Z</dc:date>
    </item>
  </channel>
</rss>

