<?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 Weighted multi-level logistic regression with proc glimmix HELP in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Weighted-multi-level-logistic-regression-with-proc-glimmix-HELP/m-p/859107#M42465</link>
    <description>&lt;P&gt;I'm a beginner trying my best to fit a multi-level model using complex survey data (American Community Survey microdata). My outcome is a binary variable at the person level, and my level two variable is metropolitan area (MSA). Ultimately, I hope to incorporate MSA-level predictors, but have not tried that yet.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following code runs, but I get the error " ". I've gotten that error with a few specifications, which is why I'm using "FASTQUAD," "qpoints=1" and "inititer=10" &amp;gt; these changes were all based on other guidance I found online on how to address this error. Clear that "FASTQUAD" is ignored, though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glimmix data=tmp2.usa1y2021_diss inititer=10 method=quadrature(fastquad qpoints=1)INITGLM&amp;nbsp;empirical=classical;&lt;/P&gt;&lt;P&gt;class MET2013;&lt;/P&gt;&lt;P&gt;model doubledup (descending) =&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;/dist=binary cl solution&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;link=logit obsweight=PERWT;&lt;/P&gt;&lt;P&gt;random intercept&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;/ type=un subject=MET2013 weight=MET2013wgt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WARNING: Sandwich covariance estimator is not available with the FASTQUAD suboption.The FASTQUAD&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;suboption is ignored.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: The EMPIRICAL option for METHOD=QUAD adjusts the covariance matrix of the fixed effects and the&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;covariance parameters. It also affects the prediction covariance matrix for the random effectssolutions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: The GLIMMIX procedure is modeling the probability that doubledup='1'.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WARNING: The initial estimates did not yield a valid objective function.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also found an example of someone using microdata with the following code, but this doesn't work for me. I thought it might be useful to go this route with something simpler, given the error I was receiving. This ran, but the results don't seem to be weighted to the population. Any help would be much appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glimmix data=tmp2.usa1y2021_diss;&lt;BR /&gt;where MET2013 notin(0);&lt;BR /&gt;weight perwt;&lt;BR /&gt;class MET2013;&lt;BR /&gt;model doubledup (desc)=&lt;BR /&gt;/dist=binary link=logit ddfm=bw solution;&lt;BR /&gt;random intercept/subject= MET2013 solution;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2023 04:15:17 GMT</pubDate>
    <dc:creator>morichard</dc:creator>
    <dc:date>2023-02-16T04:15:17Z</dc:date>
    <item>
      <title>Weighted multi-level logistic regression with proc glimmix HELP</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Weighted-multi-level-logistic-regression-with-proc-glimmix-HELP/m-p/859107#M42465</link>
      <description>&lt;P&gt;I'm a beginner trying my best to fit a multi-level model using complex survey data (American Community Survey microdata). My outcome is a binary variable at the person level, and my level two variable is metropolitan area (MSA). Ultimately, I hope to incorporate MSA-level predictors, but have not tried that yet.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following code runs, but I get the error " ". I've gotten that error with a few specifications, which is why I'm using "FASTQUAD," "qpoints=1" and "inititer=10" &amp;gt; these changes were all based on other guidance I found online on how to address this error. Clear that "FASTQUAD" is ignored, though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glimmix data=tmp2.usa1y2021_diss inititer=10 method=quadrature(fastquad qpoints=1)INITGLM&amp;nbsp;empirical=classical;&lt;/P&gt;&lt;P&gt;class MET2013;&lt;/P&gt;&lt;P&gt;model doubledup (descending) =&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;/dist=binary cl solution&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;link=logit obsweight=PERWT;&lt;/P&gt;&lt;P&gt;random intercept&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;/ type=un subject=MET2013 weight=MET2013wgt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;WARNING: Sandwich covariance estimator is not available with the FASTQUAD suboption.The FASTQUAD&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;suboption is ignored.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: The EMPIRICAL option for METHOD=QUAD adjusts the covariance matrix of the fixed effects and the&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;covariance parameters. It also affects the prediction covariance matrix for the random effectssolutions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: The GLIMMIX procedure is modeling the probability that doubledup='1'.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WARNING: The initial estimates did not yield a valid objective function.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also found an example of someone using microdata with the following code, but this doesn't work for me. I thought it might be useful to go this route with something simpler, given the error I was receiving. This ran, but the results don't seem to be weighted to the population. Any help would be much appreciated!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glimmix data=tmp2.usa1y2021_diss;&lt;BR /&gt;where MET2013 notin(0);&lt;BR /&gt;weight perwt;&lt;BR /&gt;class MET2013;&lt;BR /&gt;model doubledup (desc)=&lt;BR /&gt;/dist=binary link=logit ddfm=bw solution;&lt;BR /&gt;random intercept/subject= MET2013 solution;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 04:15:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Weighted-multi-level-logistic-regression-with-proc-glimmix-HELP/m-p/859107#M42465</guid>
      <dc:creator>morichard</dc:creator>
      <dc:date>2023-02-16T04:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Weighted multi-level logistic regression with proc glimmix HELP</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Weighted-multi-level-logistic-regression-with-proc-glimmix-HELP/m-p/859194#M42468</link>
      <description>&lt;P&gt;You might use the PARMS statement to specify a starting value for your covariance parameter to see if that helps. This might take several rounds of trial and error.&lt;/P&gt;
&lt;P&gt;Jill&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 14:07:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Weighted-multi-level-logistic-regression-with-proc-glimmix-HELP/m-p/859194#M42468</guid>
      <dc:creator>jiltao</dc:creator>
      <dc:date>2023-02-16T14:07:54Z</dc:date>
    </item>
  </channel>
</rss>

