<?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 How to compare two or more slopes/coefficients in proc GLM? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-compare-two-or-more-slopes-coefficients-in-proc-GLM/m-p/859008#M23514</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got LT50 values under serval % relative humidity and did proc GLM analysis. How to write codes to compare slopes/coefficients among several condition groups to figure out whether there are significant differences although some groups have a significant p values?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;</description>
    <pubDate>Wed, 15 Feb 2023 17:31:18 GMT</pubDate>
    <dc:creator>Davejones</dc:creator>
    <dc:date>2023-02-15T17:31:18Z</dc:date>
    <item>
      <title>How to compare two or more slopes/coefficients in proc GLM?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-compare-two-or-more-slopes-coefficients-in-proc-GLM/m-p/859008#M23514</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got LT50 values under serval % relative humidity and did proc GLM analysis. How to write codes to compare slopes/coefficients among several condition groups to figure out whether there are significant differences although some groups have a significant p values?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 17:31:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-compare-two-or-more-slopes-coefficients-in-proc-GLM/m-p/859008#M23514</guid>
      <dc:creator>Davejones</dc:creator>
      <dc:date>2023-02-15T17:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare two or more slopes/coefficients in proc GLM?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-compare-two-or-more-slopes-coefficients-in-proc-GLM/m-p/859011#M23515</link>
      <description>&lt;P&gt;&lt;A href="https://support.sas.com/kb/38/384.html" target="_blank"&gt;https://support.sas.com/kb/38/384.html&lt;/A&gt;&amp;nbsp;and then scroll down.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 17:46:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-compare-two-or-more-slopes-coefficients-in-proc-GLM/m-p/859011#M23515</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-02-15T17:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare two or more slopes/coefficients in proc GLM?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-compare-two-or-more-slopes-coefficients-in-proc-GLM/m-p/859013#M23517</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usage Note 24177: Comparing parameters (slopes) from a model fit to two or more groups&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/24/177.html" target="_blank"&gt;https://support.sas.com/kb/24/177.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general ...&lt;/P&gt;
&lt;P&gt;Make use of CONTRAST or ESTIMATE statements !!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The magical ESTIMATE (and CONTRAST) statements&lt;/P&gt;
&lt;P&gt;By Chris Daman on SAS Learning Post April 23, 2012&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sastraining/2012/04/23/the-magical-estimate-and-contrast-statements/" target="_blank"&gt;https://blogs.sas.com/content/sastraining/2012/04/23/the-magical-estimate-and-contrast-statements/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Easy button" for ESTIMATE statements&lt;/P&gt;
&lt;P&gt;By Chris Daman on SAS Learning Post April 25, 2012&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sastraining/2012/04/25/easy-button-for-estimate-statements/" target="_blank"&gt;https://blogs.sas.com/content/sastraining/2012/04/25/easy-button-for-estimate-statements/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ESTIMATE Statements - the final installment&lt;/P&gt;
&lt;P&gt;By Chris Daman on SAS Learning Post May 2, 2012&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sastraining/2012/05/02/estimate-statements-the-final-installment/" target="_blank"&gt;https://blogs.sas.com/content/sastraining/2012/05/02/estimate-statements-the-final-installment/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to write CONTRAST and ESTIMATE statements in SAS regression procedures?&lt;/P&gt;
&lt;P&gt;By Rick Wicklin on The DO Loop June 6, 2016&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2016/06/06/write-contrast-estimate-statements-sas-regression-procedures.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2016/06/06/write-contrast-estimate-statements-sas-regression-procedures.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usage Note 24447: Examples of writing CONTRAST and ESTIMATE statements&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/24/447.html" target="_blank"&gt;https://support.sas.com/kb/24/447.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usage Note 67024: Using the ESTIMATE or CONTRAST statement or Margins macro to assess continuous variable effects in interactions and splines&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/67/024.html" target="_blank"&gt;67024 - Using the ESTIMATE or CONTRAST statement or Margins macro to assess continuous variable effects in interactions and splines (sas.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When a model contains interactions, it is often of interest to assess the effect of one of the interacting variables. When the variable of interest is categorical, and therefore is specified in the CLASS statement, &lt;STRONG&gt;this is most easily done using the LSMEANS, SLICE, or LSMESTIMATE statement.&lt;/STRONG&gt; But when the variable of interest is continuous, these statements cannot be used. Two procedures, LOGISTIC and PHREG, provide statements that can estimate the effect of increasing a continuous predictor by a specified number of units. However, when the modeled response is not binomial or a time to event, these procedures are not appropriate. Nevertheless, the HAZARDRATIO statement in PROC PHREG can still be used to provide contrast coefficients that can be used in CONTRAST or ESTIMATE statements to test or estimate the effect of a continuous predictor. This can be done for a continuous predictor involved in one or more interactions and even in constructed effects such as splines. In the case of generalized linear models that don’t use the identity link, it is important to note that the estimated effect using these coefficients is not a difference in response means. For these models, an alternative and generally easier solution is provided by the Margins macro, which can estimate the required difference in means. Both of these approaches are discussed and illustrated in this note.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR,&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 18:03:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-compare-two-or-more-slopes-coefficients-in-proc-GLM/m-p/859013#M23517</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-02-15T18:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare two or more slopes/coefficients in proc GLM?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-compare-two-or-more-slopes-coefficients-in-proc-GLM/m-p/859031#M23518</link>
      <description>&lt;P&gt;Thanks Koen and how to code the following Fisher Z test in&amp;nbsp; SAS ?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Zr1-r2=(Z’1-Z’2)/((1/(N1-3)+ 1/(N2-3))1/2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Zcritical=&lt;/STRONG&gt;&lt;STRONG&gt;±1.96&lt;/STRONG&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/60547"&gt;@sbxkoenk&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Usage Note 24177: Comparing parameters (slopes) from a model fit to two or more groups&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/24/177.html" target="_blank" rel="noopener"&gt;https://support.sas.com/kb/24/177.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general ...&lt;/P&gt;&lt;P&gt;Make use of CONTRAST or ESTIMATE statements !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The magical ESTIMATE (and CONTRAST) statements&lt;/P&gt;&lt;P&gt;By Chris Daman on SAS Learning Post April 23, 2012&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sastraining/2012/04/23/the-magical-estimate-and-contrast-statements/" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/sastraining/2012/04/23/the-magical-estimate-and-contrast-statements/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Easy button" for ESTIMATE statements&lt;/P&gt;&lt;P&gt;By Chris Daman on SAS Learning Post April 25, 2012&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sastraining/2012/04/25/easy-button-for-estimate-statements/" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/sastraining/2012/04/25/easy-button-for-estimate-statements/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ESTIMATE Statements - the final installment&lt;/P&gt;&lt;P&gt;By Chris Daman on SAS Learning Post May 2, 2012&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sastraining/2012/05/02/estimate-statements-the-final-installment/" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/sastraining/2012/05/02/estimate-statements-the-final-installment/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to write CONTRAST and ESTIMATE statements in SAS regression procedures?&lt;/P&gt;&lt;P&gt;By Rick Wicklin on The DO Loop June 6, 2016&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2016/06/06/write-contrast-estimate-statements-sas-regression-procedures.html" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/iml/2016/06/06/write-contrast-estimate-statements-sas-regression-procedures.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Usage Note 24447: Examples of writing CONTRAST and ESTIMATE statements&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/kb/24/447.html" target="_blank" rel="noopener"&gt;https://support.sas.com/kb/24/447.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Usage Note 67024: Using the ESTIMATE or CONTRAST statement or Margins macro to assess continuous variable effects in interactions and splines&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/kb/67/024.html" target="_blank" rel="noopener"&gt;67024 - Using the ESTIMATE or CONTRAST statement or Margins macro to assess continuous variable effects in interactions and splines (sas.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When a model contains interactions, it is often of interest to assess the effect of one of the interacting variables. When the variable of interest is categorical, and therefore is specified in the CLASS statement, &lt;STRONG&gt;this is most easily done using the LSMEANS, SLICE, or LSMESTIMATE statement.&lt;/STRONG&gt; But when the variable of interest is continuous, these statements cannot be used. Two procedures, LOGISTIC and PHREG, provide statements that can estimate the effect of increasing a continuous predictor by a specified number of units. However, when the modeled response is not binomial or a time to event, these procedures are not appropriate. Nevertheless, the HAZARDRATIO statement in PROC PHREG can still be used to provide contrast coefficients that can be used in CONTRAST or ESTIMATE statements to test or estimate the effect of a continuous predictor. This can be done for a continuous predictor involved in one or more interactions and even in constructed effects such as splines. In the case of generalized linear models that don’t use the identity link, it is important to note that the estimated effect using these coefficients is not a difference in response means. For these models, an alternative and generally easier solution is provided by the Margins macro, which can estimate the required difference in means. Both of these approaches are discussed and illustrated in this note.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Koen&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 15 Feb 2023 18:52:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-compare-two-or-more-slopes-coefficients-in-proc-GLM/m-p/859031#M23518</guid>
      <dc:creator>Davejones</dc:creator>
      <dc:date>2023-02-15T18:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare two or more slopes/coefficients in proc GLM?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-compare-two-or-more-slopes-coefficients-in-proc-GLM/m-p/859050#M23519</link>
      <description>&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV&gt;Example 2.3 Analysis Using Fisher’s&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;EM&gt;z&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Transformation&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P class=""&gt;The following statements request Pearson correlation statistics by using Fisher’s&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;z&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;transformation for the data set&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class=""&gt;Fitness&lt;/CODE&gt;:&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=""&gt;&lt;CODE&gt;proc corr data=Fitness nosimple fisher;
   var weight oxygen runtime;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;found above proc corr in&lt;/P&gt;&lt;PRE&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/procstat/procstat_corr_examples03.htm&lt;/PRE&gt;&lt;P&gt;. How to add Class "female LT50 or male LT50" to proc corr to check the effect of different % relative humidity on the slopes with LT50s?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 20:36:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-compare-two-or-more-slopes-coefficients-in-proc-GLM/m-p/859050#M23519</guid>
      <dc:creator>Davejones</dc:creator>
      <dc:date>2023-02-15T20:36:39Z</dc:date>
    </item>
  </channel>
</rss>

