<?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: Novice SAS user needs help with PROC GLIMMIX in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Novice-SAS-user-needs-help-with-PROC-GLIMMIX/m-p/725440#M35204</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/373340"&gt;@LaurenMeta&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Having your code in text format makes it very difficult to follow or even read in some cases.&amp;nbsp; Could you repost, with your code in the "Insert SAS code" box?&amp;nbsp; The icon that looks like&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SteveDenham_0-1615470700238.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55810i3B9639C6EA72FE62/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SteveDenham_0-1615470700238.png" alt="SteveDenham_0-1615470700238.png" /&gt;&lt;/span&gt;is what will trigger that.&amp;nbsp; The &amp;lt;/&amp;gt; icon will also work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;If you have issues with PROC GLIMMIX, please also show your complete log file, so that we can trace any errors back to the source.&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
    <pubDate>Thu, 11 Mar 2021 13:54:39 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2021-03-11T13:54:39Z</dc:date>
    <item>
      <title>Novice SAS user needs help with PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Novice-SAS-user-needs-help-with-PROC-GLIMMIX/m-p/725323#M35191</link>
      <description>&lt;P&gt;Hello, I am some what new to SAS and very new to using Proc Glimmix. I recently took a multilevel modeling course and it is new to me. I am working with sample weights and I am confused. I am having a hard time understanding my output. I am also wondering if my code is correct. I wanted to run a two level model. I have state level variables (level two) and I wanted to understand their relationship to Postpartum Depression (level one). Postpartum Depression is binary (yes or no). I also have other health indicators at level one and state level poverty at level 2. Maybe I am confused..but I don't think my code is correct. I would like to have the odds ratios in the output as well. My IV (state level variables at level 2) are categorized as 0=low, 1=med, and 2=high.&amp;nbsp; I am really stuck and would appreciate any help! I wanted to do at random effects and fixed effects ( for the state level variables). . I am wondering if it correct and also if I wanted to do all fixed effects what should I enter. I an introductory course and I am still learning. However, the course was not in SAS, so I am really confused.&amp;nbsp;&amp;nbsp;Here is my code proc sort data= out1; by FIPS; run; proc summary data=out1 print; by FIPS; var wtanal; output out=intermediate uss=sumsqw sum=sumw n=nj; run; proc means; run; data LaurenFinal; merge out1 intermediate; by FIPS; aw=wtanal/(sumw/nj); bw=wtanal/(sumsqw/sumw); run; proc means; run; proc contents data=out1; run; proc freq data=LaurenFinal; tables state FIPS; run; /*method A*/ Proc glimmix noclprint data=LaurenFinal method=quad; class FIPS; model PostpartumDepression= /dist=binomial link=probit obsweight=aw solution; random intercept /sub=FIPS; covtest 'var (FIPS)=0' 0.; run; /*Method b*/ Proc glimmix noclprint data=LaurenFinal method=quad; class FIPS; model PostpartumDepression= /dist=binomial link=probit obsweight=bw solution; random intercept /sub=FIPS; covtest 'var (FIPS)=0' 0.; run; THIS IS WHAT I HAVE NOW, BUT I DON'T THINK IT'S RIGHT: Title' PPD overall BW Incarceration model method A2 Random'; Proc glimmix noclprint data=LaurenFinalPhD method=quad; class FIPS; class BWIncRatioAVG_3/REF=First; model PostpartumDepression (event='1')= /dist=binary Oddsratio link=logit obsweight=aw solution; random intercept BWIncRatioAVG_3 /sub=FIPS CL; covtest 'var (FIPS)=0' 0.; run; Title' PPD overall BW Incarceration model method b Random'; Proc glimmix noclprint data=LaurenFinalPhD method=quad; class FIPS; class BWIncRatioAVG_3/REF=First; model PostpartumDepression= /dist=binomial Oddsratio link=logit obsweight=bw solution; random intercept BWIncRatioAVG_3 /sub=FIPS CL; covtest 'var (FIPS)=0' 0.; run; /*Use fixed for models. this is the crude model*/ Title' PPD overall BW Incarceration model method A2 fixed'; Proc glimmix noclprint data=LaurenFinalPhD method=quad; class FIPS; class BWIncRatioAVG_3/REF=First; model PostpartumDepression (event='1')=BWIncRatioAVG_3 /dist=binary Oddsratio link=logit obsweight=aw solution; random intercept /sub=FIPS CL; covtest 'var (FIPS)=0' 0.; run; Title' PPD overall BW Incarceration model method b fixed'; Proc glimmix noclprint data=LaurenFinalPhD method=quad; class FIPS; class BWIncRatioAVG_3/REF=First; model PostpartumDepression (event='1')=BWIncRatioAVG_3 /dist=binary Oddsratio link=logit obsweight=bw solution; random intercept /sub=FIPS CL; covtest 'var (FIPS)=0' 0.; run; Thank you so much!!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 01:50:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Novice-SAS-user-needs-help-with-PROC-GLIMMIX/m-p/725323#M35191</guid>
      <dc:creator>LaurenMeta</dc:creator>
      <dc:date>2021-03-11T01:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Novice SAS user needs help with PROC GLIMMIX</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Novice-SAS-user-needs-help-with-PROC-GLIMMIX/m-p/725440#M35204</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/373340"&gt;@LaurenMeta&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Having your code in text format makes it very difficult to follow or even read in some cases.&amp;nbsp; Could you repost, with your code in the "Insert SAS code" box?&amp;nbsp; The icon that looks like&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SteveDenham_0-1615470700238.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/55810i3B9639C6EA72FE62/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SteveDenham_0-1615470700238.png" alt="SteveDenham_0-1615470700238.png" /&gt;&lt;/span&gt;is what will trigger that.&amp;nbsp; The &amp;lt;/&amp;gt; icon will also work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;If you have issues with PROC GLIMMIX, please also show your complete log file, so that we can trace any errors back to the source.&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 13:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Novice-SAS-user-needs-help-with-PROC-GLIMMIX/m-p/725440#M35204</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-03-11T13:54:39Z</dc:date>
    </item>
  </channel>
</rss>

