<?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: How to adjust mean values with covariates in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-adjust-mean-values-with-covariates/m-p/767341#M37516</link>
    <description>Thank you so much for these informations!!</description>
    <pubDate>Mon, 13 Sep 2021 09:39:11 GMT</pubDate>
    <dc:creator>AgaWS</dc:creator>
    <dc:date>2021-09-13T09:39:11Z</dc:date>
    <item>
      <title>How to adjust mean values with covariates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-adjust-mean-values-with-covariates/m-p/765578#M37426</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to find out mean food intake of different food groups in my data set and significant difference between the mean food intake between men and women. Therefore, I want to adjust my variable with a covariate, namely with the total energy intake. I already performed the one-sided t-Test to check for significant differences between all food groups per day. Here is the code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;PROC TTEST DATA=diverse;
   VAR &amp;amp;foodgroup;
   CLASS sex;
RUN;&lt;/PRE&gt;&lt;P&gt;Now I want to adjust for the covriate of &lt;STRONG&gt;total energy intake per day&lt;/STRONG&gt; but I can't find the code for it in the proc ttest procedure. Is there another statement to adjust?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Aga&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 08:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-adjust-mean-values-with-covariates/m-p/765578#M37426</guid>
      <dc:creator>AgaWS</dc:creator>
      <dc:date>2021-09-02T08:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to adjust mean values with covariates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-adjust-mean-values-with-covariates/m-p/765589#M37427</link>
      <description>&lt;P&gt;There are so many things that can be meant by "adjust" that you need to be very specific as to what you mean in this case. A working example with actual data or a link to a reference of what you want would be a good idea.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 09:54:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-adjust-mean-values-with-covariates/m-p/765589#M37427</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-09-02T09:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to adjust mean values with covariates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-adjust-mean-values-with-covariates/m-p/765607#M37432</link>
      <description>&lt;P&gt;You are likely going to need to use PROC MIXED or GLIMMIX for this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=have;
class sex subjid;
model &amp;amp;foodgroup = sex tot_energy_intake sex*tot_energy_intake;
random intercept/subject=subjid(sex);
lsmeans sex/diff;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This tests to see if the slope is the same for the two sexes.&amp;nbsp; If there is no significant difference, you can remove sex*tot_energy_intake.&amp;nbsp; If there is a significant difference, you should fit:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=have;
class sex subjid;
model &amp;amp;foodgroup = sex sex*tot_energy_intake;
random intercept/subject=subjid(sex);
lsmeans sex/diff;
lsmeans sex/@&amp;lt;low value of tot_energy_intake&amp;gt; diff;
lsmeans sex/@&amp;lt;high value of tot_energy_intake&amp;gt; diff;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Check the analysis of covariance chapter in any of the versions of SAS for Mixed Models for more on this approach.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 11:53:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-adjust-mean-values-with-covariates/m-p/765607#M37432</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-09-02T11:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to adjust mean values with covariates</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-adjust-mean-values-with-covariates/m-p/767341#M37516</link>
      <description>Thank you so much for these informations!!</description>
      <pubDate>Mon, 13 Sep 2021 09:39:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-adjust-mean-values-with-covariates/m-p/767341#M37516</guid>
      <dc:creator>AgaWS</dc:creator>
      <dc:date>2021-09-13T09:39:11Z</dc:date>
    </item>
  </channel>
</rss>

