<?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 REPEATED in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MIXED-REPEATED/m-p/21851#M4715</link>
    <description>The following code is untested.  I assume that dose is categorical and fixed across drugs.  If not, then see part 2. &lt;BR /&gt;
&lt;BR /&gt;
proc mixed data = mydata;&lt;BR /&gt;
class drug patient hour dose gen;&lt;BR /&gt;
model heartrate = gen|drug|dose|hour;&lt;BR /&gt;
repeated hour / subject=patient(drug) type=un;&lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
If dose is continuous and varies by type of drug then:&lt;BR /&gt;
proc mixed data = mydata;&lt;BR /&gt;
class drug patient hour gen;&lt;BR /&gt;
model heartrate = gen|drug|hour dose drug*dose;&lt;BR /&gt;
repeated hour / subject=patient(drug) type=un;&lt;BR /&gt;
lsmeans gen|drug|hour/at dose={insert value of interest};&lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
These should provide a good start, but it may be that the covariance structure contains too many parameters, in which case an autoregressive or spatial power structure might be more usable.&lt;BR /&gt;
&lt;BR /&gt;
Steve Denham</description>
    <pubDate>Fri, 14 May 2010 11:33:12 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2010-05-14T11:33:12Z</dc:date>
    <item>
      <title>PROC MIXED REPEATED</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MIXED-REPEATED/m-p/21849#M4713</link>
      <description>I am conducting an analysis on repeated measures data by using PROC MIXED with REPEATED statement.&lt;BR /&gt;
&lt;BR /&gt;
I have an example coding available for a typical ‘drug test’ scenario below (i.e., various drugs tested on patients, and the patients’ heart rate monitored every hour): &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc mixed data = mydata;&lt;BR /&gt;
   class        drug  patient  hour;&lt;BR /&gt;
   model       heartrate = drug  hour  drug*hour;&lt;BR /&gt;
   repeated   hour /  subject=patient(drug)  type=un;&lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
If instead, assuming you wanted to monitor the influence of various dosage of a given drug X (DOSE) hourly (HR) on patients (PAT) consisting of both genders (GEN), each having 3 weight categories (WC) as blocks. How do you properly modify the basic coding example provided above? I've wasted 3 days trying to get this right...  Thanks for your help.</description>
      <pubDate>Thu, 13 May 2010 20:24:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-MIXED-REPEATED/m-p/21849#M4713</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-05-13T20:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIXED REPEATED</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MIXED-REPEATED/m-p/21850#M4714</link>
      <description>...of course, I'm still interested in the influence of drug dosage on the patients' heart rate (HEART).</description>
      <pubDate>Thu, 13 May 2010 20:49:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-MIXED-REPEATED/m-p/21850#M4714</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-05-13T20:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIXED REPEATED</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MIXED-REPEATED/m-p/21851#M4715</link>
      <description>The following code is untested.  I assume that dose is categorical and fixed across drugs.  If not, then see part 2. &lt;BR /&gt;
&lt;BR /&gt;
proc mixed data = mydata;&lt;BR /&gt;
class drug patient hour dose gen;&lt;BR /&gt;
model heartrate = gen|drug|dose|hour;&lt;BR /&gt;
repeated hour / subject=patient(drug) type=un;&lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
If dose is continuous and varies by type of drug then:&lt;BR /&gt;
proc mixed data = mydata;&lt;BR /&gt;
class drug patient hour gen;&lt;BR /&gt;
model heartrate = gen|drug|hour dose drug*dose;&lt;BR /&gt;
repeated hour / subject=patient(drug) type=un;&lt;BR /&gt;
lsmeans gen|drug|hour/at dose={insert value of interest};&lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
These should provide a good start, but it may be that the covariance structure contains too many parameters, in which case an autoregressive or spatial power structure might be more usable.&lt;BR /&gt;
&lt;BR /&gt;
Steve Denham</description>
      <pubDate>Fri, 14 May 2010 11:33:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-MIXED-REPEATED/m-p/21851#M4715</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2010-05-14T11:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIXED REPEATED</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MIXED-REPEATED/m-p/21852#M4716</link>
      <description>Hi Steve,&lt;BR /&gt;
&lt;BR /&gt;
Thanks so much for taking time to help me out (yet again!). This certainly helps me greatly to have a good starting point. I’ll try it out and see what covariance structure works best etc. Best regards!</description>
      <pubDate>Fri, 14 May 2010 12:33:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-MIXED-REPEATED/m-p/21852#M4716</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-05-14T12:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIXED REPEATED</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MIXED-REPEATED/m-p/21853#M4717</link>
      <description>Hi Steve,&lt;BR /&gt;
&lt;BR /&gt;
Could you kindly tell me how I would account for the 3 weight categories (blocks) in the coding version 1? Would I use the RANDOM statement??&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc mixed data = mydata;&lt;BR /&gt;
class drug patient hour dose gen;&lt;BR /&gt;
model heartrate = gen|drug|dose|hour;&lt;BR /&gt;
repeated hour / subject=patient(drug) type=un;&lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Mon, 17 May 2010 13:42:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-MIXED-REPEATED/m-p/21853#M4717</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-05-17T13:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: PROC MIXED REPEATED</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MIXED-REPEATED/m-p/21854#M4718</link>
      <description>Hi Steve, I tried modifying the base code you have posted for me in order to account for the blocking effect. I am not confident of the changes I have made though…how does it look? Thanks!  &lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;Scenario&lt;/U&gt; (just as a reminder):&lt;BR /&gt;
A specific drug X is administered to patients at various dosages (DOSE), and the change in patients’ heart rates is monitored hourly (PATIENT, HEARTRATE, and TIME). Men and women are tested separately (GENDER). Also, prior to assigning patients to a certain dosage, three weight categories (BLOCK) are created. From all weight categories, equal number of patients is assigned to a certain dosage.    &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc mixed data=mydata;&lt;BR /&gt;
class 	dose patient time gender block;&lt;BR /&gt;
model 	heartrate= dose|time|gender;&lt;BR /&gt;
random	block;&lt;BR /&gt;
repeated 	time /subject=patient(dose*gender*block) type=un;   &lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
(As this thread is getting longer, I’ll start a new one with this post)</description>
      <pubDate>Mon, 17 May 2010 17:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-MIXED-REPEATED/m-p/21854#M4718</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-05-17T17:23:13Z</dc:date>
    </item>
  </channel>
</rss>

