<?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: Trend of a continuous variable in a repeated model in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Trend-of-a-continuous-variable-in-a-repeated-model/m-p/760452#M37067</link>
    <description>&lt;P&gt;EDIT: I forgot to say that your PROC MIXED approach is quite good.&amp;nbsp; I wouldn't shift to REG.&amp;nbsp; The Type3 tests are whether at least one time point mean differs from all the rest.&amp;nbsp; That may not be a trend, so...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to look at a trend in time, use an LSMESTIMATE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;lsmestimate 'linear time' time -1 0 1;
lsmestimate 'quadratic time' time 1 -2 1;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that with 3 time points, for linear time the middle time point has no effect, which is why looking at the quadratic time (or deviation from linearity) is useful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Aug 2021 19:24:16 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2021-08-09T19:24:16Z</dc:date>
    <item>
      <title>Trend of a continuous variable in a repeated model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trend-of-a-continuous-variable-in-a-repeated-model/m-p/760425#M37059</link>
      <description>&lt;P&gt;I am trying to see if there is a trend in a continuous lab value over time. There are 3 timepoints (1=baseline, 2=month 1, 3=month 2). I structured the data such that each patient has 3 records. Most patients have data for all 3 timepoints, but not all.&lt;/P&gt;&lt;P&gt;Is a mixed model appropriate, with repeated time? Or do I use proc reg?&lt;/P&gt;&lt;P&gt;I am relatively new with proc mixed; this is the mixed model I currently have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;mixed&lt;/STRONG&gt; data=lab covtest;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class time ptno;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model labval = time;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; repeated time/subject=ptno type=un;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; lsmeans time / cl pdiff adjust=tukey;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods output LSMeans=lsmeans1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Type 3 Tests of Fixed Effects &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Effect Num DF Den DF F Value Pr &amp;gt; F &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;time 2 207 137.04 &amp;lt;.0001&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I use the type 3 tests of fixed effects to determine if there is a trend over time?&lt;/P&gt;&lt;P&gt;IF I want to see the differences between any 2 timepoints, should I use the p-values from the differences of least square&amp;nbsp; means section, or should I do paired t-tests/wilcoxon signed rank?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 17:30:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trend-of-a-continuous-variable-in-a-repeated-model/m-p/760425#M37059</guid>
      <dc:creator>tka726</dc:creator>
      <dc:date>2021-08-09T17:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Trend of a continuous variable in a repeated model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trend-of-a-continuous-variable-in-a-repeated-model/m-p/760452#M37067</link>
      <description>&lt;P&gt;EDIT: I forgot to say that your PROC MIXED approach is quite good.&amp;nbsp; I wouldn't shift to REG.&amp;nbsp; The Type3 tests are whether at least one time point mean differs from all the rest.&amp;nbsp; That may not be a trend, so...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to look at a trend in time, use an LSMESTIMATE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;lsmestimate 'linear time' time -1 0 1;
lsmestimate 'quadratic time' time 1 -2 1;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that with 3 time points, for linear time the middle time point has no effect, which is why looking at the quadratic time (or deviation from linearity) is useful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Aug 2021 19:24:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trend-of-a-continuous-variable-in-a-repeated-model/m-p/760452#M37067</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-08-09T19:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Trend of a continuous variable in a repeated model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trend-of-a-continuous-variable-in-a-repeated-model/m-p/760453#M37068</link>
      <description>Thank you!&lt;BR /&gt;The p-value for 'linear time' and 'quadratic time' are both significant. I understand that the significant p-value for linear time means that there is a difference in lab value between time 1 and time 3, but I don't exactly understand what the significant p-value for quadratic time means...?</description>
      <pubDate>Mon, 09 Aug 2021 19:40:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trend-of-a-continuous-variable-in-a-repeated-model/m-p/760453#M37068</guid>
      <dc:creator>tka726</dc:creator>
      <dc:date>2021-08-09T19:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: Trend of a continuous variable in a repeated model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trend-of-a-continuous-variable-in-a-repeated-model/m-p/760924#M37103</link>
      <description>&lt;P&gt;Here is an interpretation:&amp;nbsp; Significant linear means that a straight line fit through the 3 means will have a slope that is significantly different from 0.&amp;nbsp; Significant quadratic tests whether there is a significant deviation from linearity in the means - that while a straight line fits, there is more that should be considered.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, without seeing the means, I would expect that the month1 and month2 means differ from baseline by approximately the same amount.&amp;nbsp; A hockey-stick graph of some sort.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 14:41:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trend-of-a-continuous-variable-in-a-repeated-model/m-p/760924#M37103</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-08-11T14:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Trend of a continuous variable in a repeated model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Trend-of-a-continuous-variable-in-a-repeated-model/m-p/761427#M37152</link>
      <description>Thank you so much, this is perfect! And you are absolutely right - the graph looks like a boomerang.</description>
      <pubDate>Fri, 13 Aug 2021 14:16:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Trend-of-a-continuous-variable-in-a-repeated-model/m-p/761427#M37152</guid>
      <dc:creator>tka726</dc:creator>
      <dc:date>2021-08-13T14:16:00Z</dc:date>
    </item>
  </channel>
</rss>

