<?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 GLM repeated measures (one class, two models) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-one-class-two-models/m-p/434013#M22855</link>
    <description>&lt;P&gt;"group" would be analogous to your "gender"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There does seem to be a lot of overlap in your two threads. You can sort out this one and that might solve the second. I'll wait to see.&lt;/P&gt;</description>
    <pubDate>Sun, 04 Feb 2018 21:19:37 GMT</pubDate>
    <dc:creator>sld</dc:creator>
    <dc:date>2018-02-04T21:19:37Z</dc:date>
    <item>
      <title>PROC GLM repeated measures (one class, two models)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-one-class-two-models/m-p/433653#M22817</link>
      <description>&lt;P&gt;HI there,&lt;/P&gt;&lt;P&gt;I want to conduct a repeated measures MANOVA to examine the effect of treatment (and gender as between subject factor) on Energy Intake (EI) and Water Intake (WI). I am putting these two dependent variables in the same analysis as there is a weak correlation between them.&lt;/P&gt;&lt;P&gt;There are three kinds of treatment and I am looking at the effect of those treatments on each group (EIkcal 1-3 and WI 1-3).&lt;/P&gt;&lt;P&gt;However, SAS interprets that there are six kinds of treatment (please refer to the attachment).&lt;/P&gt;&lt;P&gt;Please tell me how I can modify the code below! TIA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Variables: ID gender Eikcal1 EIkcal2 EIkcal3 WI1 WI2 WI3 ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;BR /&gt;proc glm data=IMPORT2;&lt;BR /&gt;class gender;&lt;BR /&gt;model &lt;STRONG&gt;EIkcal1-EIkcal3 WI1-WI3&lt;/STRONG&gt; = gender / nouni;&lt;BR /&gt;repeated &lt;STRONG&gt;Treatment&lt;/STRONG&gt; / printe;&lt;BR /&gt;run;&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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="スクリーンショット 2018-02-03 02.50.59.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18285iA9DCF1CCAF8AD57A/image-size/large?v=v2&amp;amp;px=999" role="button" title="スクリーンショット 2018-02-03 02.50.59.png" alt="スクリーンショット 2018-02-03 02.50.59.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 18:33:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-one-class-two-models/m-p/433653#M22817</guid>
      <dc:creator>madpumpkinpie</dc:creator>
      <dc:date>2018-02-02T18:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM repeated measures (one class, two models)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-one-class-two-models/m-p/433866#M22834</link>
      <description>&lt;P&gt;I suspect you are not thinking correctly about your experimental design. Are&amp;nbsp;all three treatments assigned to each subject (which would be a repeated measures treatment structure), or is each subject assigned to a single treatment (which would not be a repeated measures treatment structure)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also I notice from your output snippet that 123 observations are read but only 41 are used in analysis, which is not good and suggests a lot of missing values. From the MIXED documentation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;When a MANOVA statement appears before the first RUN statement, PROC GLM enters a multivariate mode with respect to the handling of missing values; in addition to observations with missing independent variables, observations with&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;any&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;missing dependent variables are excluded from the analysis."&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2018 20:59:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-one-class-two-models/m-p/433866#M22834</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2018-02-03T20:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM repeated measures (one class, two models)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-one-class-two-models/m-p/433906#M22837</link>
      <description>&lt;P&gt;Thanks for responding,&lt;/P&gt;&lt;P&gt;Yeah I noticed the same thing, I just forgot to delete extra data (gender column had 82 extra rows).&lt;/P&gt;&lt;P&gt;The number of participants is 41 and all three treatments were assigned to each of them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Feb 2018 23:27:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-one-class-two-models/m-p/433906#M22837</guid>
      <dc:creator>madpumpkinpie</dc:creator>
      <dc:date>2018-02-03T23:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM repeated measures (one class, two models)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-one-class-two-models/m-p/433941#M22839</link>
      <description>&lt;P&gt;In what order were the three treatments assigned? Did you invoke some form of cross-over design? (Generally&amp;nbsp;one should seriously consider Latin square or crossover designs when applying multiple treatments to the same subject.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Setting aside issues of potential treatment carryover or order effect, I would consider using the MIXED procedure with a Kronecker product covariance structure for the repeated measures through time and multiple response variables, or joint modeling of multiple response variables in GLIMMIX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some toeholds into the concepts:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sastraining/2011/02/02/the-punchline-manova-or-a-mixed-model/" target="_self"&gt;The Punchline: MANOVA or a Mixed Model?&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.nrcresearchpress.com/doi/pdf/10.4141/A03-123?src=recsys&amp;amp;" target="_self"&gt;The use of MIXED models in the analysis of animal experiments with repeated measures data&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings15/SAS1919-2015.pdf" target="_self"&gt;Advanced Techniques for Fitting Mixed Models Using SAS/STAT® Software&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_glimmix_sect017.htm" target="_self"&gt;Example 38.5 Joint Modeling of Binary and Count Data&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2018 05:06:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-one-class-two-models/m-p/433941#M22839</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2018-02-04T05:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM repeated measures (one class, two models)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-one-class-two-models/m-p/433996#M22847</link>
      <description>&lt;P&gt;If GLM is your preferred tool, then there is this from the GLM documentation for the REPEATED statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When specifying more than one factor, list the dependent variables in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/statug_glm_sect019.htm" target="_blank"&gt;MODEL&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;statement so that the within-subject factors defined in the REPEATED statement are nested; that is, the first factor defined in the REPEATED statement should be the one with values that change least frequently. For example, assume that three treatments are administered at each of four times, for a total of twelve dependent variables on each experimental unit. If the variables are listed in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/statug_glm_sect019.htm" target="_blank"&gt;MODEL&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;statement as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="variable"&gt;Y1&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;through&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="variable"&gt;Y12&lt;/SPAN&gt;, then the REPEATED statement in&lt;/P&gt;
&lt;DIV class="pre"&gt;
&lt;PRE class="sascode"&gt; proc glm;
     classes group;
     model Y1-Y12=group / nouni;
     repeated trt 3, time 4;
 run;
&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;implies the following structure:&lt;/P&gt;
&lt;CENTER&gt;&lt;CENTER&gt;
&lt;TABLE class="tabular" cellspacing="0" cellpadding="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD colspan="12"&gt;
&lt;P&gt;Dependent Variables&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN class="variable"&gt;Y1&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN class="variable"&gt;Y2&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN class="variable"&gt;Y3&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN class="variable"&gt;Y4&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN class="variable"&gt;Y5&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN class="variable"&gt;Y6&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN class="variable"&gt;Y7&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN class="variable"&gt;Y8&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN class="variable"&gt;Y9&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN class="variable"&gt;Y10&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN class="variable"&gt;Y11&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;&lt;SPAN class="variable"&gt;Y12&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;Value of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="variable"&gt;trt&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&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&gt;
&lt;P&gt;1&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;2&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;3&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;4&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/CENTER&gt;&lt;/CENTER&gt;</description>
      <pubDate>Sun, 04 Feb 2018 19:21:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-one-class-two-models/m-p/433996#M22847</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2018-02-04T19:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM repeated measures (one class, two models)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-one-class-two-models/m-p/433999#M22849</link>
      <description>&lt;P&gt;It's randomized cross-over design, so the order of treatment is different between each subject. As there was no effect of session order on food intake (kcal), I did not consider it in this analysis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for many resources, I get a bit confused but will refer to them!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2018 19:55:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-one-class-two-models/m-p/433999#M22849</guid>
      <dc:creator>madpumpkinpie</dc:creator>
      <dc:date>2018-02-04T19:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM repeated measures (one class, two models)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-one-class-two-models/m-p/434001#M22851</link>
      <description>&lt;P&gt;Thank you for responding!!&lt;/P&gt;&lt;P&gt;I just posted another question (&lt;A href="https://communities.sas.com/t5/SAS-Statistical-Procedures/Two-within-subject-factors-repeated-measures-ANOVA/m-p/433997#M22850" target="_blank"&gt;https://communities.sas.com/t5/SAS-Statistical-Procedures/Two-within-subject-factors-repeated-measures-ANOVA/m-p/433997#M22850&lt;/A&gt;) but your code may work for it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What does "group" means? Does it from the data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2018 20:02:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-one-class-two-models/m-p/434001#M22851</guid>
      <dc:creator>madpumpkinpie</dc:creator>
      <dc:date>2018-02-04T20:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM repeated measures (one class, two models)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-one-class-two-models/m-p/434013#M22855</link>
      <description>&lt;P&gt;"group" would be analogous to your "gender"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There does seem to be a lot of overlap in your two threads. You can sort out this one and that might solve the second. I'll wait to see.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2018 21:19:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-repeated-measures-one-class-two-models/m-p/434013#M22855</guid>
      <dc:creator>sld</dc:creator>
      <dc:date>2018-02-04T21:19:37Z</dc:date>
    </item>
  </channel>
</rss>

