<?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: Help interpreting linear trend in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Help-interpreting-linear-trend/m-p/398309#M20763</link>
    <description>&lt;P&gt;This SAS note discusses the selection of coefficients for linear trend&lt;/P&gt;
&lt;P&gt;&lt;A title="Usage Note 22912: How can I obtain test for trends (e.g. linear, quadratic, cubic, etc.) using PROC GLM?" href="http://support.sas.com/kb/22/912.html" target="_self"&gt;http://support.sas.com/kb/22/912.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that {-3, -1, 1, 3} are appropriate for a categorical factor with &lt;EM&gt;4 equally spaced levels that are in order from smallest to largest ordinal value&lt;/EM&gt;. Based on the labels for distcat in your output, it's not apparent that the levels of distcat are evenly spaced, or in fact, what value should be associated with each level of distcat. And the levels clearly are not in order, which is the point made by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ESTIMATE and CONTRAST statements both test H0: no linear trend: the p-values are the same, and t^2 for ESTIMATE is equal to F for CONTRAST. In other words, they are the same test. The Estimate value reported by ESTIMATE is the linear combination of the distcat means using the specified coefficients; notably, it is not an estimate of the slope.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I won't speculate about the impact of adding covariates. It depends on what model you specify, for example, whether you include interaction between distcat and covariates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's not obvious to me that Single, Currently Married, and Previously Married are ordered values. Linear trend makes sense for only ordered values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have actual distance values, you could and most likely should use those values in a regression model rather than categorizing distance to use in an ANOVA model. You needlessly give up information by categorizing, not to mention the arbitrary aspect of deciding how many categories and what cutpoints.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;</description>
    <pubDate>Sat, 23 Sep 2017 19:57:05 GMT</pubDate>
    <dc:creator>sld</dc:creator>
    <dc:date>2017-09-23T19:57:05Z</dc:date>
    <item>
      <title>Help interpreting linear trend</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-interpreting-linear-trend/m-p/398207#M20757</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dependent variable = gestational age at first clinic visit (continuous) =&amp;nbsp;&lt;FONT color="#FF6600"&gt;p1v1_gest&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Independent variable = village distance from clinic = &lt;FONT color="#0000FF"&gt;distcat&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I'd like to know if the gestational age at first clinic visit varies LINEARLY with village distance from clinic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;proc glm data = ...;&lt;/P&gt;&lt;P&gt;class &lt;FONT color="#0000FF"&gt;distcat&lt;/FONT&gt;;&lt;/P&gt;&lt;P&gt;model &lt;FONT color="#FF6600"&gt;p1v1_gest&lt;/FONT&gt; = &lt;FONT color="#0000FF"&gt;distcat&lt;/FONT&gt; / solution;&lt;/P&gt;&lt;P&gt;estimate "Linear trend for &lt;FONT color="#0000FF"&gt;distcat&lt;/FONT&gt;" &lt;FONT color="#0000FF"&gt;distcat&lt;/FONT&gt; -3 -1 1 3;&lt;/P&gt;&lt;P&gt;contrast 'linear' &lt;FONT color="#0000FF"&gt;distcat&lt;/FONT&gt; -3 -1 1 3;&lt;/P&gt;&lt;P&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Results: (see attached)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following questions (&lt;EM&gt;If you can only answer one, the first is most important!)&lt;/EM&gt;:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Can you please help me interpet the output with as regards the "Linear trend for distcat"?&lt;/LI&gt;&lt;LI&gt;How does the "estimate" result differ from the "contrast" result in terms of interpetation?&lt;/LI&gt;&lt;LI&gt;Was the use of -3 -1 1 3 appropriate or am I supposed to put in the median values and make them sum to zero?&lt;/LI&gt;&lt;LI&gt;Once I add in&amp;nbsp;covariates into the model, how will that change my interpretation?&lt;/LI&gt;&lt;LI&gt;If, instead of distance, I had three marital status categories (Single, Currently Married, Previously Married) could I still test for a linear trend? If so, how would that interpretation work?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks SO much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 19:01:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-interpreting-linear-trend/m-p/398207#M20757</guid>
      <dc:creator>rogersaj</dc:creator>
      <dc:date>2017-09-22T19:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help interpreting linear trend</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-interpreting-linear-trend/m-p/398258#M20759</link>
      <description>&lt;P&gt;Your output seems to indicate that your distcat levels are not ordered properly in your tests to represent a linear effect. Specifying option ORDER=DATA in the proc statement&amp;nbsp;might help you solve this problem. Anyway, you should use the E option in your contrast and estimate statements to check the ordering of distcat levels.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2017 03:40:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-interpreting-linear-trend/m-p/398258#M20759</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-09-23T03:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help interpreting linear trend</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-interpreting-linear-trend/m-p/398309#M20763</link>
      <description>&lt;P&gt;This SAS note discusses the selection of coefficients for linear trend&lt;/P&gt;
&lt;P&gt;&lt;A title="Usage Note 22912: How can I obtain test for trends (e.g. linear, quadratic, cubic, etc.) using PROC GLM?" href="http://support.sas.com/kb/22/912.html" target="_self"&gt;http://support.sas.com/kb/22/912.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that {-3, -1, 1, 3} are appropriate for a categorical factor with &lt;EM&gt;4 equally spaced levels that are in order from smallest to largest ordinal value&lt;/EM&gt;. Based on the labels for distcat in your output, it's not apparent that the levels of distcat are evenly spaced, or in fact, what value should be associated with each level of distcat. And the levels clearly are not in order, which is the point made by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The ESTIMATE and CONTRAST statements both test H0: no linear trend: the p-values are the same, and t^2 for ESTIMATE is equal to F for CONTRAST. In other words, they are the same test. The Estimate value reported by ESTIMATE is the linear combination of the distcat means using the specified coefficients; notably, it is not an estimate of the slope.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I won't speculate about the impact of adding covariates. It depends on what model you specify, for example, whether you include interaction between distcat and covariates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's not obvious to me that Single, Currently Married, and Previously Married are ordered values. Linear trend makes sense for only ordered values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have actual distance values, you could and most likely should use those values in a regression model rather than categorizing distance to use in an ANOVA model. You needlessly give up information by categorizing, not to mention the arbitrary aspect of deciding how many categories and what cutpoints.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Sat, 23 Sep 2017 19:57:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-interpreting-linear-trend/m-p/398309#M20763</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2017-09-23T19:57:05Z</dc:date>
    </item>
  </channel>
</rss>

