<?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: how to get rid of proc genmod log error message in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-rid-of-proc-genmod-log-error-message/m-p/715664#M221079</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/111564"&gt;@HitmonTran&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi I am receiving an error in log message for proc genmod when determining Relative Risk.&amp;nbsp; This is caused because there are results for one treatment arm and zero for the other.&amp;nbsp; Since my current program is macrotized with other subsets, it doesn't always display a message.&lt;/P&gt;
&lt;P&gt;So, how would I prevent the log from displaying an error message in this situation? thanks&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-inline" image-alt="HitmonTran_0-1612112244353.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54186i5B6694EF42AF469C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HitmonTran_0-1612112244353.png" alt="HitmonTran_0-1612112244353.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;	proc genmod data = aetime; 
		class actarm(ref='Placebo') usubjid;
		model aecnt = actarm  
		      / dist = poisson link = log offset=futime;
		estimate 'Rel Risk' actarm 1 -1/ exp;
		repeated subject = usubjid/ type = unstr;
		ods output estimates=RELRISK(where=(label='Rel Risk'));
	run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you know the cause is " are results for one treatment arm and zero for the other" then test that before calling the procedure. If the error case is in effect do not call the procedure.&lt;/P&gt;
&lt;P&gt;You need to decide what the result data set should look like in that case.&lt;/P&gt;</description>
    <pubDate>Sun, 31 Jan 2021 20:15:57 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-01-31T20:15:57Z</dc:date>
    <item>
      <title>how to get rid of proc genmod log error message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-rid-of-proc-genmod-log-error-message/m-p/715636#M221055</link>
      <description>&lt;P&gt;Hi I am receiving an error in log message for proc genmod when determining Relative Risk.&amp;nbsp; This is caused because there are results for one treatment arm and zero for the other.&amp;nbsp; Since my current program is macrotized with other subsets, it doesn't always display a message.&lt;/P&gt;&lt;P&gt;So, how would I prevent the log from displaying an error message in this situation? thanks&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-inline" image-alt="HitmonTran_0-1612112244353.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54186i5B6694EF42AF469C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HitmonTran_0-1612112244353.png" alt="HitmonTran_0-1612112244353.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;	proc genmod data = aetime; 
		class actarm(ref='Placebo') usubjid;
		model aecnt = actarm  
		      / dist = poisson link = log offset=futime;
		estimate 'Rel Risk' actarm 1 -1/ exp;
		repeated subject = usubjid/ type = unstr;
		ods output estimates=RELRISK(where=(label='Rel Risk'));
	run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2021 16:59:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-rid-of-proc-genmod-log-error-message/m-p/715636#M221055</guid>
      <dc:creator>HitmonTran</dc:creator>
      <dc:date>2021-01-31T16:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to get rid of proc genmod log error message</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-get-rid-of-proc-genmod-log-error-message/m-p/715664#M221079</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/111564"&gt;@HitmonTran&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi I am receiving an error in log message for proc genmod when determining Relative Risk.&amp;nbsp; This is caused because there are results for one treatment arm and zero for the other.&amp;nbsp; Since my current program is macrotized with other subsets, it doesn't always display a message.&lt;/P&gt;
&lt;P&gt;So, how would I prevent the log from displaying an error message in this situation? thanks&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-inline" image-alt="HitmonTran_0-1612112244353.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54186i5B6694EF42AF469C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HitmonTran_0-1612112244353.png" alt="HitmonTran_0-1612112244353.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;	proc genmod data = aetime; 
		class actarm(ref='Placebo') usubjid;
		model aecnt = actarm  
		      / dist = poisson link = log offset=futime;
		estimate 'Rel Risk' actarm 1 -1/ exp;
		repeated subject = usubjid/ type = unstr;
		ods output estimates=RELRISK(where=(label='Rel Risk'));
	run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you know the cause is " are results for one treatment arm and zero for the other" then test that before calling the procedure. If the error case is in effect do not call the procedure.&lt;/P&gt;
&lt;P&gt;You need to decide what the result data set should look like in that case.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jan 2021 20:15:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-get-rid-of-proc-genmod-log-error-message/m-p/715664#M221079</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-01-31T20:15:57Z</dc:date>
    </item>
  </channel>
</rss>

