<?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: Proc Mixed ESTIMATE / LSMEANS with continuous variable in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-ESTIMATE-LSMEANS-with-continuous-variable/m-p/774364#M37875</link>
    <description>&lt;P&gt;thank you very much Paige for the reply.&lt;/P&gt;&lt;P&gt;the tricky thing is, the TIME is a continuous variable, which has values such 65, 66, 67, 68, etc. the WEEK is another variable that has values of 5, 6,7,8,9,10 means WEEK 5 to WEEK 10. I don't know if ok to use TIME a continuous variable in LSMEANS? or use WEEK? but WEEK categorical variable is not in the model statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Christine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Oct 2021 21:24:00 GMT</pubDate>
    <dc:creator>chou123</dc:creator>
    <dc:date>2021-10-14T21:24:00Z</dc:date>
    <item>
      <title>Proc Mixed ESTIMATE / LSMEANS with continuous variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-ESTIMATE-LSMEANS-with-continuous-variable/m-p/774043#M37856</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I would like to use the linear mixed effects model to estimate the mean difference of the variable Y between 2 treatments. I use the treatment, baseline value, time (as a continuous variable) and treatment by time interaction term as fixed effects, and subject as a random effect. I tried to use the following codes in the Proc Mixed model, but could not find the example in the manual how to write ESTIMATE or LSMEANS statement to derive the point estimate of mean difference.&lt;/P&gt;&lt;P&gt;/* treatment has 2 levels, the continuous variable time ranges from day 30 to day 70, variable y has measurements from week 5 to week 10. */&lt;/P&gt;&lt;P&gt;Proc Mixed data=test;&lt;BR /&gt;class Treatment subject;&lt;BR /&gt;model y=Treatment baseline Time Treatment*Time / solution;&lt;BR /&gt;random&amp;nbsp; /subject= subject;&lt;/P&gt;&lt;P&gt;Estimate………???&lt;/P&gt;&lt;P&gt;Run;&lt;/P&gt;&lt;P&gt;The point estimate of the mean difference for Y at week 10 need to be estimated. The corresponding variable time during week 10 is a continuous variable, with the mean 69 days for those records during week 10.&lt;/P&gt;&lt;P&gt;can I use this statement as below?&lt;/P&gt;&lt;P&gt;Estimate 'Treatment 1' Intercept 1 Treatment 1 0 &amp;nbsp;Time 69;&lt;BR /&gt;Estimate 'Treatment 2' Intercept 1 Treatment 0 1 &amp;nbsp;Time 69;&lt;/P&gt;&lt;P&gt;But I am not sure if the above is correct or not. Could you help me with an example code if you have? Should the interaction term Treatment*Time be considered too? Another question is, how to specify the Y at week 10 in the ESTIMATE statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help will be appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 20:39:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-ESTIMATE-LSMEANS-with-continuous-variable/m-p/774043#M37856</guid>
      <dc:creator>chou123</dc:creator>
      <dc:date>2021-10-13T20:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Mixed ESTIMATE / LSMEANS with continuous variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-ESTIMATE-LSMEANS-with-continuous-variable/m-p/774049#M37857</link>
      <description>&lt;P&gt;I wouldn't even try it with the ESTIMATE statement. Your question is easily answered by LSMEANS statement with the DIFF option and using AT TIME=10&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/statug/statug_mixed_syntax08.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.3/statug/statug_mixed_syntax08.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 21:18:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-ESTIMATE-LSMEANS-with-continuous-variable/m-p/774049#M37857</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-10-13T21:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Mixed ESTIMATE / LSMEANS with continuous variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-ESTIMATE-LSMEANS-with-continuous-variable/m-p/774364#M37875</link>
      <description>&lt;P&gt;thank you very much Paige for the reply.&lt;/P&gt;&lt;P&gt;the tricky thing is, the TIME is a continuous variable, which has values such 65, 66, 67, 68, etc. the WEEK is another variable that has values of 5, 6,7,8,9,10 means WEEK 5 to WEEK 10. I don't know if ok to use TIME a continuous variable in LSMEANS? or use WEEK? but WEEK categorical variable is not in the model statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Christine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 21:24:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-ESTIMATE-LSMEANS-with-continuous-variable/m-p/774364#M37875</guid>
      <dc:creator>chou123</dc:creator>
      <dc:date>2021-10-14T21:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Mixed ESTIMATE / LSMEANS with continuous variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-ESTIMATE-LSMEANS-with-continuous-variable/m-p/774371#M37876</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;I don't know if ok to use TIME a continuous variable in LSMEANS?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS will tell you if you try to do something that is not allowed. Try it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The documentation that I gave a link to also answers your question.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 21:58:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-ESTIMATE-LSMEANS-with-continuous-variable/m-p/774371#M37876</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-10-14T21:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Mixed ESTIMATE / LSMEANS with continuous variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-ESTIMATE-LSMEANS-with-continuous-variable/m-p/774773#M37890</link>
      <description>&lt;P&gt;thank you very much, &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it works now.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Oct 2021 22:37:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Mixed-ESTIMATE-LSMEANS-with-continuous-variable/m-p/774773#M37890</guid>
      <dc:creator>chou123</dc:creator>
      <dc:date>2021-10-17T22:37:08Z</dc:date>
    </item>
  </channel>
</rss>

