<?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 Choosing linear trend coefficients in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Choosing-linear-trend-coefficients/m-p/398894#M20792</link>
    <description>&lt;P&gt;A few days ago, I asked for help interpeting a linear trend here:&amp;nbsp;&amp;nbsp;&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="_blank" rel="nofollow noopener noreferrer"&gt;http://support.sas.com/kb/22/912.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It turns out my analysis was wrong because of my categories were unevenly spaced (in addition to not being sorted, which they are now).&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/1708"&gt;@sld&lt;/a&gt;&amp;nbsp;pointed me to this resource to deal with unequally spaced treatments:&amp;nbsp;&lt;A href="http://support.sas.com/kb/22/912.html&amp;nbsp;" target="_self"&gt;http://support.sas.com/kb/22/912.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I can't seem to figure out how to use PROC IML to find my coefficients for the linear trend.&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, since my categories are distances, do I use the midpoint?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Distance le 5km; midpoint = 2.5&lt;/LI&gt;&lt;LI&gt;Distance between 6 to 15km; midpoint = 10.5&lt;/LI&gt;&lt;LI&gt;Distance between 16 to 30km; midpoint = 23&lt;/LI&gt;&lt;LI&gt;Distance beween 31 to 100km; midpoint = 75&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc iml;
	distcat={2.5,10.5,23,75};
	contrL=orpol(distcat,4);
	print contrL;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output:&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture3.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15429iDCE66E71FDAD716F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture3.PNG" alt="Capture3.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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If my code is right, how do I interpet the output to create my dose levels to test for linear trend with PROC GLM "Estimate"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2017 18:16:02 GMT</pubDate>
    <dc:creator>rogersaj</dc:creator>
    <dc:date>2017-09-26T18:16:02Z</dc:date>
    <item>
      <title>Choosing linear trend coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Choosing-linear-trend-coefficients/m-p/398894#M20792</link>
      <description>&lt;P&gt;A few days ago, I asked for help interpeting a linear trend here:&amp;nbsp;&amp;nbsp;&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="_blank" rel="nofollow noopener noreferrer"&gt;http://support.sas.com/kb/22/912.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It turns out my analysis was wrong because of my categories were unevenly spaced (in addition to not being sorted, which they are now).&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/1708"&gt;@sld&lt;/a&gt;&amp;nbsp;pointed me to this resource to deal with unequally spaced treatments:&amp;nbsp;&lt;A href="http://support.sas.com/kb/22/912.html&amp;nbsp;" target="_self"&gt;http://support.sas.com/kb/22/912.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I can't seem to figure out how to use PROC IML to find my coefficients for the linear trend.&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, since my categories are distances, do I use the midpoint?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Distance le 5km; midpoint = 2.5&lt;/LI&gt;&lt;LI&gt;Distance between 6 to 15km; midpoint = 10.5&lt;/LI&gt;&lt;LI&gt;Distance between 16 to 30km; midpoint = 23&lt;/LI&gt;&lt;LI&gt;Distance beween 31 to 100km; midpoint = 75&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc iml;
	distcat={2.5,10.5,23,75};
	contrL=orpol(distcat,4);
	print contrL;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output:&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Capture3.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15429iDCE66E71FDAD716F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture3.PNG" alt="Capture3.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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If my code is right, how do I interpet the output to create my dose levels to test for linear trend with PROC GLM "Estimate"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 18:16:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Choosing-linear-trend-coefficients/m-p/398894#M20792</guid>
      <dc:creator>rogersaj</dc:creator>
      <dc:date>2017-09-26T18:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Choosing linear trend coefficients</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Choosing-linear-trend-coefficients/m-p/398910#M20793</link>
      <description>&lt;P&gt;I assume you only have the categories of distance?&amp;nbsp;If you know the actual distances, you could use&amp;nbsp;DISTANCE as a covariate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't think it matters too much how you set up the reference values. Using the midpoint seems reasonable because it is the expected value of the distance traveled under the assumption of uniformly distributed villages.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As to the interpretation, the columns of the matrix represent polynomials of degree 0 (intercept), 1, 2, 3, and 4. So the elements of the second column (-0.447 ... 0.8365) are the values to use for the linear trend. The elements of the third column (0.598 ... 0.223) are the values to use for the quadratic trend.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 18:54:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Choosing-linear-trend-coefficients/m-p/398910#M20793</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-09-26T18:54:53Z</dc:date>
    </item>
  </channel>
</rss>

