<?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: need help with repeated statement in proc mixed for split plot with two factors in the split in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/need-help-with-repeated-statement-in-proc-mixed-for-split-plot/m-p/921369#M45784</link>
    <description>&lt;P&gt;Try using just WEEK as the repeated effect (the term after the REPEATED statement) and see if that will converge. I am not sure what MIXED will do if you include SEGMENT as both part of the repeated effect and the subject effect. You can try specifying the R option to see how MIXED is correlating the errors in your data.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2024 18:11:14 GMT</pubDate>
    <dc:creator>StatsMan</dc:creator>
    <dc:date>2024-03-21T18:11:14Z</dc:date>
    <item>
      <title>need help with repeated statement in proc mixed for split plot with two factors in the split</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/need-help-with-repeated-statement-in-proc-mixed-for-split-plot/m-p/920608#M45728</link>
      <description>&lt;P&gt;Hi! I have a split plot with two factors in the split. I need to know how to write the repeated statement for the residuals in the model. I have two treatments (active vs placebo). Patients are nested within treatment. The whole plot is&lt;BR /&gt;treatment (t-1)=1 df&lt;BR /&gt;patient(treatment) t*(p-1)=2p-2 df which is the random effect residual for the whole plot effect of treatment.&lt;BR /&gt;The split plot has factors week and segment. We are measuring 112 segments within patients' eyes at several timepoints (week variable). Each eye is divided up on scans into 56 parts. Everyone's eyes are divided the same way. At first I thought this was subsampling of the patient for examining the effect of treatment. But there is no randomization of segments being sampled and they are exactly the same across all patients. So, we have patients being blocks for both week and segment. The effects in the split plot are&lt;BR /&gt;week (w-1) df&lt;BR /&gt;treatment*week (t-1)(w-1) df&lt;BR /&gt;segment (s-1) df&lt;BR /&gt;treatment*segment (t-1)(s-1)&lt;BR /&gt;treatment*segment*week (t-1)(s-1)(w-1)&lt;BR /&gt;and the residual error term&lt;BR /&gt;The error term seems to be segment*patient(treatment) + week*patient(treatment) + segment*week*patient(treatment).&lt;BR /&gt;We have no interest in the segment effect. We are interested in treatment and week and treatment*week effects.&lt;BR /&gt;I believe the proc mixed call would have the following two random statements which assume a common variance between the two treatments.&lt;BR /&gt;Random patient(treatment);&lt;BR /&gt;Random week*patient(treatment);&lt;BR /&gt;What would the proc mixed repeated statement be for defining the residual error?&lt;BR /&gt;Thank you for your help!&lt;BR /&gt;Alan&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2024 17:38:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/need-help-with-repeated-statement-in-proc-mixed-for-split-plot/m-p/920608#M45728</guid>
      <dc:creator>Alan68022</dc:creator>
      <dc:date>2024-03-17T17:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: need help with repeated statement in proc mixed for split plot with two factors in the split</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/need-help-with-repeated-statement-in-proc-mixed-for-split-plot/m-p/920814#M45742</link>
      <description>&lt;P&gt;The RANDOM statement&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;random patient(treatment);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;correlates all the observations from the same patient with a CS structure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The RANDOM statement&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;random week*patient(treatment);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;correlates all the observations from the same week for a patient. So that statement puts a CS structure on all the segments from the same week on the same patient.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From your description, you may not need to further correlate the errors in your model. You state that segment is of no interest to you, so you do not need an effect that includes segment. It does appear that you are measuring both eyes on a patient, with 56 observations coming from each eye. If both, do you need to correlate observations from the same eye?&lt;/P&gt;
&lt;P&gt;You could correlate the observations from the same segment across the weeks, using something like segment*eye*patient(treatment) as the subject effect on a REPEATED statement. That might look something like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;repeated week / subject=segment*eye*patient(treatment) type=??; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;where you can choose the covariance structure applied. This model will get expensive to estimate if you have lots of patients and many weeks, however.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 19:03:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/need-help-with-repeated-statement-in-proc-mixed-for-split-plot/m-p/920814#M45742</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2024-03-18T19:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: need help with repeated statement in proc mixed for split plot with two factors in the split</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/need-help-with-repeated-statement-in-proc-mixed-for-split-plot/m-p/921341#M45782</link>
      <description>&lt;P&gt;Thanks StatsMan for your help! I also checked with George Milliken from KSU and who cowrote the SAS book on mixed models. He explained to me that I could use:&lt;/P&gt;&lt;LI-CODE lang="sas"&gt;repeated week*segment&amp;nbsp;/ subject=segment*eye*patient(treatment) type=??; &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I didn't know that by putting week*segment in this repeated statement that it would automatically include all three: &lt;SPAN&gt;segment*patient(treatment) + week*patient(treatment) + segment*week*patient(treatment)&lt;/SPAN&gt;. Unfortunately, can't get it to converge. Still working on it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 16:50:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/need-help-with-repeated-statement-in-proc-mixed-for-split-plot/m-p/921341#M45782</guid>
      <dc:creator>Alan68022</dc:creator>
      <dc:date>2024-03-21T16:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: need help with repeated statement in proc mixed for split plot with two factors in the split</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/need-help-with-repeated-statement-in-proc-mixed-for-split-plot/m-p/921369#M45784</link>
      <description>&lt;P&gt;Try using just WEEK as the repeated effect (the term after the REPEATED statement) and see if that will converge. I am not sure what MIXED will do if you include SEGMENT as both part of the repeated effect and the subject effect. You can try specifying the R option to see how MIXED is correlating the errors in your data.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 18:11:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/need-help-with-repeated-statement-in-proc-mixed-for-split-plot/m-p/921369#M45784</guid>
      <dc:creator>StatsMan</dc:creator>
      <dc:date>2024-03-21T18:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: need help with repeated statement in proc mixed for split plot with two factors in the split</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/need-help-with-repeated-statement-in-proc-mixed-for-split-plot/m-p/929633#M46317</link>
      <description>&lt;P&gt;Sorry to not respond earlier. I tried your solution as well as the one I mentioned. The algorithm didn't converge with either one of them. I don't think I have enough observations to be able to use the model. I hope to have another opportunity to dive into this again, but with less sparse data. Thanks for your help statsman!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2024 19:05:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/need-help-with-repeated-statement-in-proc-mixed-for-split-plot/m-p/929633#M46317</guid>
      <dc:creator>Alan68022</dc:creator>
      <dc:date>2024-05-24T19:05:04Z</dc:date>
    </item>
  </channel>
</rss>

