<?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 PROC GENMOD non-est for prevalence ratio in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-non-est-for-prevalence-ratio/m-p/867371#M42880</link>
    <description>&lt;P&gt;Hi everyone! I am fairly new to SAS and am looking for some help debugging my code. For background, I have a dataset of 102 subjects. I am running a log-binomial regression to determine prevalence ratios. My outcome variable is 'comfort' which is binary, with the outcome of interest being 'comfortable=1'. My predictor variables is race/ethnicity and is nominal, coded as 1, 2, 3, and 4 (for different race/ethnicities). I am looking to get estimates of the PR and 95% CI for each group of the predictor variable compared to the referent group.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the following code, however, the table of 'Contrast Estimate Results' returns a result of 'Non-est' for each estimate statement. Note, due to convergence issues I am using a poisson distribution with the repeated subject line.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;proc genmod data=final;&lt;BR /&gt;class id race_eth_grp(ref='1');&lt;BR /&gt;model vagina_comfort_bin(event='1')= race_eth_grp&lt;BR /&gt;/ dist=poisson link=log;&lt;BR /&gt;repeated subject=id / type=unstr;&lt;BR /&gt;estimate 'PR: race_eth_grp 2 vs. 1' race_eth_grp 0 1 0 0 / exp;&lt;BR /&gt;estimate 'PR: race_eth_grp 3 vs. 1' race_eth_grp 0 0 1 0 / exp;&lt;BR /&gt;estimate 'PR: race_eth_grp 4 vs. 1' race_eth_grp 0 0 0 1 / exp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screen Shot 2023-03-30 at 10.27.00 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82217iE7D55521B951088C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2023-03-30 at 10.27.00 PM.png" alt="Screen Shot 2023-03-30 at 10.27.00 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure what I am doing wrong and would gladly appreciate any insight. It may be important to note the skewed distribution among groups for 'race_eth_grp', with&amp;nbsp;race_eth_grp=1 having 84 subjects,&amp;nbsp;race_eth_grp=2 having 5 subjects,&amp;nbsp;race_eth_grp=3 having 5 subjects, and&amp;nbsp;race_eth_grp=4 having 8 subjects (*note this is the overall count, not the prevalence that responded comfortable to the outcome). I've tried the Firth method as well using proc logistic, however I am still running in to issues. Please let me know if any additional information is needed to help answer this! Thank you!!&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2023 02:32:54 GMT</pubDate>
    <dc:creator>efwelsh</dc:creator>
    <dc:date>2023-03-31T02:32:54Z</dc:date>
    <item>
      <title>PROC GENMOD non-est for prevalence ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-non-est-for-prevalence-ratio/m-p/867371#M42880</link>
      <description>&lt;P&gt;Hi everyone! I am fairly new to SAS and am looking for some help debugging my code. For background, I have a dataset of 102 subjects. I am running a log-binomial regression to determine prevalence ratios. My outcome variable is 'comfort' which is binary, with the outcome of interest being 'comfortable=1'. My predictor variables is race/ethnicity and is nominal, coded as 1, 2, 3, and 4 (for different race/ethnicities). I am looking to get estimates of the PR and 95% CI for each group of the predictor variable compared to the referent group.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the following code, however, the table of 'Contrast Estimate Results' returns a result of 'Non-est' for each estimate statement. Note, due to convergence issues I am using a poisson distribution with the repeated subject line.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;proc genmod data=final;&lt;BR /&gt;class id race_eth_grp(ref='1');&lt;BR /&gt;model vagina_comfort_bin(event='1')= race_eth_grp&lt;BR /&gt;/ dist=poisson link=log;&lt;BR /&gt;repeated subject=id / type=unstr;&lt;BR /&gt;estimate 'PR: race_eth_grp 2 vs. 1' race_eth_grp 0 1 0 0 / exp;&lt;BR /&gt;estimate 'PR: race_eth_grp 3 vs. 1' race_eth_grp 0 0 1 0 / exp;&lt;BR /&gt;estimate 'PR: race_eth_grp 4 vs. 1' race_eth_grp 0 0 0 1 / exp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screen Shot 2023-03-30 at 10.27.00 PM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82217iE7D55521B951088C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2023-03-30 at 10.27.00 PM.png" alt="Screen Shot 2023-03-30 at 10.27.00 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure what I am doing wrong and would gladly appreciate any insight. It may be important to note the skewed distribution among groups for 'race_eth_grp', with&amp;nbsp;race_eth_grp=1 having 84 subjects,&amp;nbsp;race_eth_grp=2 having 5 subjects,&amp;nbsp;race_eth_grp=3 having 5 subjects, and&amp;nbsp;race_eth_grp=4 having 8 subjects (*note this is the overall count, not the prevalence that responded comfortable to the outcome). I've tried the Firth method as well using proc logistic, however I am still running in to issues. Please let me know if any additional information is needed to help answer this! Thank you!!&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 02:32:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-non-est-for-prevalence-ratio/m-p/867371#M42880</guid>
      <dc:creator>efwelsh</dc:creator>
      <dc:date>2023-03-31T02:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GENMOD non-est for prevalence ratio</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-non-est-for-prevalence-ratio/m-p/867382#M42881</link>
      <description>&lt;P&gt;You cannot compare prevalences (risks) by estimating their difference or their ratio. Neither can be done using ESTIMATE statements. You can do this as described in &lt;A href="http://support.sas.com/kb/37228.html" target="_self"&gt;this note&lt;/A&gt; on estimating the risk difference or &lt;A href="http://support.sas.com/kb/23003.html" target="_self"&gt;this note&lt;/A&gt; on estimating the risk ratio.&amp;nbsp; As shown, either can be done using PROC LOGISTIC followed by the NLMeans macro. The LSMEANS statement can provide the individual risks.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 13:58:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GENMOD-non-est-for-prevalence-ratio/m-p/867382#M42881</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2023-03-31T13:58:52Z</dc:date>
    </item>
  </channel>
</rss>

