<?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: Test for trend using median values in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Test-for-trend-using-median-values/m-p/307369#M16276</link>
    <description>I indeed did an ANOVA and I imputated the median values as new variable, and put this in the class statement! So it's solved! Thanks for the input!</description>
    <pubDate>Wed, 26 Oct 2016 12:57:57 GMT</pubDate>
    <dc:creator>Marjolein</dc:creator>
    <dc:date>2016-10-26T12:57:57Z</dc:date>
    <item>
      <title>Test for trend using median values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Test-for-trend-using-median-values/m-p/306764#M16235</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to perform a test for trend in an ANOVA procedure. For example: I have 4 categories of a blood parameter (from which I obtained the median values), and I want to see whether some kind of baseline characteristic (e.g.&amp;nbsp;age) increases linearly with this blood parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I've tried:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;GLM&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;DATA&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=my.data;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;CLASS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; bloodparameter;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;MODEL&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;nbsp;age = bloodparameter;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;CONTRAST&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"linear trend"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; bloodparameter &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1.71&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;2.14&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;2.63&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;3.62&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; ;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;MEANS&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt; bloodparameter;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;RUN&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;; &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;FONT size="2"&gt;I searched on the internet and I saw the following code for the linear trend test: x -3 -1 &amp;nbsp;1 &amp;nbsp;3.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;FONT size="2"&gt;Therefore I replaced it with the median values, since they are not equally spaced. &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;FONT size="2"&gt;However, SAS says the trend is not estimatable. What am I doing wrong?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;FONT size="2"&gt;Thanks a lot in advance.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&lt;FONT size="2"&gt;Kind regards, M.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2016 12:51:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Test-for-trend-using-median-values/m-p/306764#M16235</guid>
      <dc:creator>Marjolein</dc:creator>
      <dc:date>2016-10-24T12:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Test for trend using median values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Test-for-trend-using-median-values/m-p/307075#M16255</link>
      <description>&lt;P&gt;Check PROC CATMOD which can perform ANOVA or REG analysis.&lt;/P&gt;
&lt;P&gt;And there is already an example like yours about social ability in documentation.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2016 09:59:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Test-for-trend-using-median-values/m-p/307075#M16255</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-10-25T09:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Test for trend using median values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Test-for-trend-using-median-values/m-p/307287#M16265</link>
      <description>&lt;P&gt;Or you can just check the correlation coefficient of row and column variable by PROC FREQ.&lt;/P&gt;
&lt;P&gt;Check statistical &amp;nbsp;GAMMA,Kendall's Tau,Somer's D .........&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2016 02:39:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Test-for-trend-using-median-values/m-p/307287#M16265</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-10-26T02:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Test for trend using median values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Test-for-trend-using-median-values/m-p/307369#M16276</link>
      <description>I indeed did an ANOVA and I imputated the median values as new variable, and put this in the class statement! So it's solved! Thanks for the input!</description>
      <pubDate>Wed, 26 Oct 2016 12:57:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Test-for-trend-using-median-values/m-p/307369#M16276</guid>
      <dc:creator>Marjolein</dc:creator>
      <dc:date>2016-10-26T12:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Test for trend using median values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Test-for-trend-using-median-values/m-p/308810#M16349</link>
      <description>&lt;P&gt;There are several on-line calculators that can give the coefficients for a linear trend with unequal spacing. &amp;nbsp;The key is that the coefficients in a CONTRAST statement must sum to zero. &amp;nbsp;You can do this by subtracting the mean of the values you have from each individual value. &amp;nbsp;In this case, I got -0.815 -0.385 0.105 1.095. &amp;nbsp;Try plugging in those values where you currently have 1.71 2.14 2.63 3.62,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 14:18:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Test-for-trend-using-median-values/m-p/308810#M16349</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2016-11-07T14:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Test for trend using median values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Test-for-trend-using-median-values/m-p/309220#M16361</link>
      <description>&lt;P&gt;Thanks! It worked &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2016 10:19:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Test-for-trend-using-median-values/m-p/309220#M16361</guid>
      <dc:creator>Marjolein</dc:creator>
      <dc:date>2016-11-04T10:19:38Z</dc:date>
    </item>
  </channel>
</rss>

