<?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 genmode regression equation in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmode-regression-equation/m-p/688941#M33208</link>
    <description>&lt;P&gt;This may not answer you question specifically but lets you check your answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use a CODE statement in PROC GENMOD, in many cases, and it will generate the code to score new data. Looking at that code can help you check if the formula is correct when typing it out.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2014/02/19/scoring-a-regression-model-in-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2014/02/19/scoring-a-regression-model-in-sas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212756"&gt;@NinaWestern&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am using proc genmod with tweedie distribution and log link to analyze positively skewed outcome.&lt;/P&gt;
&lt;P&gt;Trying to figure out the actual regression equation to include it in the paper.&lt;/P&gt;
&lt;P&gt;I am struggling with how to reflect the link function in the equation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the SAS syntax:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc genmod data=sasuser...;&lt;BR /&gt;class sex CAS;&lt;BR /&gt;model int= sex age_cent age_sq sex*age_cent CAS rstr_cent rstr_sq sex*rstr_cent/dist=tweedie link=log;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here sex is coded 0 and 1, CAS has 4 categories (1,2,3,4), and the last category is used as a reference.&lt;/P&gt;
&lt;P&gt;The model includes the quadratic effects of age and Rstr.&lt;/P&gt;
&lt;P&gt;Wondering if the following equation is correct:&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="NinaWestern_1-1601915351337.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/50167i251C6C18DF888EBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NinaWestern_1-1601915351337.png" alt="NinaWestern_1-1601915351337.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;Or should it be without Ln's in the formula?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NinaWestern_2-1601916140543.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/50169i47330E4B24C762D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NinaWestern_2-1601916140543.png" alt="NinaWestern_2-1601916140543.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;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Oct 2020 16:51:22 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2020-10-05T16:51:22Z</dc:date>
    <item>
      <title>proc genmode regression equation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmode-regression-equation/m-p/688935#M33207</link>
      <description>&lt;P&gt;I am using proc genmod with tweedie distribution and log link to analyze positively skewed outcome.&lt;/P&gt;
&lt;P&gt;Trying to figure out the actual regression equation to include it in the paper.&lt;/P&gt;
&lt;P&gt;I am struggling with how to reflect the link function in the equation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the SAS syntax:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc genmod data=sasuser...;&lt;BR /&gt;class sex CAS;&lt;BR /&gt;model int= sex age_cent age_sq sex*age_cent CAS rstr_cent rstr_sq sex*rstr_cent/dist=tweedie link=log;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here sex is coded 0 and 1, CAS has 4 categories (1,2,3,4), and the last category is used as a reference.&lt;/P&gt;
&lt;P&gt;The model includes the quadratic effects of age and Rstr.&lt;/P&gt;
&lt;P&gt;Wondering if the following equation is correct:&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="NinaWestern_1-1601915351337.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/50167i251C6C18DF888EBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NinaWestern_1-1601915351337.png" alt="NinaWestern_1-1601915351337.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;Or should it be without Ln's in the formula?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NinaWestern_2-1601916140543.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/50169i47330E4B24C762D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NinaWestern_2-1601916140543.png" alt="NinaWestern_2-1601916140543.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;</description>
      <pubDate>Mon, 05 Oct 2020 16:42:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmode-regression-equation/m-p/688935#M33207</guid>
      <dc:creator>NinaWestern</dc:creator>
      <dc:date>2020-10-05T16:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: proc genmode regression equation</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-genmode-regression-equation/m-p/688941#M33208</link>
      <description>&lt;P&gt;This may not answer you question specifically but lets you check your answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use a CODE statement in PROC GENMOD, in many cases, and it will generate the code to score new data. Looking at that code can help you check if the formula is correct when typing it out.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2014/02/19/scoring-a-regression-model-in-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2014/02/19/scoring-a-regression-model-in-sas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/212756"&gt;@NinaWestern&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am using proc genmod with tweedie distribution and log link to analyze positively skewed outcome.&lt;/P&gt;
&lt;P&gt;Trying to figure out the actual regression equation to include it in the paper.&lt;/P&gt;
&lt;P&gt;I am struggling with how to reflect the link function in the equation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the SAS syntax:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc genmod data=sasuser...;&lt;BR /&gt;class sex CAS;&lt;BR /&gt;model int= sex age_cent age_sq sex*age_cent CAS rstr_cent rstr_sq sex*rstr_cent/dist=tweedie link=log;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here sex is coded 0 and 1, CAS has 4 categories (1,2,3,4), and the last category is used as a reference.&lt;/P&gt;
&lt;P&gt;The model includes the quadratic effects of age and Rstr.&lt;/P&gt;
&lt;P&gt;Wondering if the following equation is correct:&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="NinaWestern_1-1601915351337.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/50167i251C6C18DF888EBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NinaWestern_1-1601915351337.png" alt="NinaWestern_1-1601915351337.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;Or should it be without Ln's in the formula?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NinaWestern_2-1601916140543.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/50169i47330E4B24C762D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NinaWestern_2-1601916140543.png" alt="NinaWestern_2-1601916140543.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;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 16:51:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-genmode-regression-equation/m-p/688941#M33208</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-10-05T16:51:22Z</dc:date>
    </item>
  </channel>
</rss>

