<?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 level 2 variable in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-mixed-level-2-variable/m-p/370316#M19415</link>
    <description>Thank you for your help with this. I had copied and pasted from my code but did not copy the class statement properly. Trial is a categorical variable and not a continuous variable. I do have trial in my class statement. That is a pretty easy fix. I will try that. Thank you for your help.</description>
    <pubDate>Sat, 24 Jun 2017 23:44:55 GMT</pubDate>
    <dc:creator>PaulaC</dc:creator>
    <dc:date>2017-06-24T23:44:55Z</dc:date>
    <item>
      <title>Proc mixed level 2 variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-mixed-level-2-variable/m-p/370213#M19400</link>
      <description>&lt;P&gt;I have two separate clinical trial datasets that have the same variables and sites are numbered consecutively for each clinical trial. &amp;nbsp;I have combined both clinical trials into one dataset using the set statement. &amp;nbsp;I also have a flag for each clinical trial. &amp;nbsp;I have a unique subject id that is unique across both clincial trial datasets. &amp;nbsp;I am clustering patients within sites. &amp;nbsp;The sites ids are the same in many cases across both clinical trials. &amp;nbsp;Is that a problem with proc mixed and using siteid as the clustering variable? &amp;nbsp;Does siteid need to be unique in the combined dataset eventhough the patient id is unique? &amp;nbsp;I have a feeling it is, but wanted to confirm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the following code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc mixed data=analysisaim1 covtest method=ML order=data;&lt;BR /&gt;class siteid;&lt;BR /&gt;model chgql=trial racecat cntrycat totcomorbid suppcare ecogb NumPt trtdur/solution ddfm=kr;&lt;BR /&gt;random intercept/subject=siteid;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS 9.4 TS. &amp;nbsp;Any help you could provide would be greatly appreciated. &amp;nbsp;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2017 03:05:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-mixed-level-2-variable/m-p/370213#M19400</guid>
      <dc:creator>PaulaC</dc:creator>
      <dc:date>2017-06-24T03:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc mixed level 2 variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-mixed-level-2-variable/m-p/370307#M19413</link>
      <description>&lt;P&gt;The side IDs should be unique for the nesting you describe. Easy to handle. First, trial should be listed in the class statement (I can't imagine how trial is a continuous variable). then in the random statement, use subject=siteid(trial);&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2017 22:04:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-mixed-level-2-variable/m-p/370307#M19413</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2017-06-24T22:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc mixed level 2 variable</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-mixed-level-2-variable/m-p/370316#M19415</link>
      <description>Thank you for your help with this. I had copied and pasted from my code but did not copy the class statement properly. Trial is a categorical variable and not a continuous variable. I do have trial in my class statement. That is a pretty easy fix. I will try that. Thank you for your help.</description>
      <pubDate>Sat, 24 Jun 2017 23:44:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-mixed-level-2-variable/m-p/370316#M19415</guid>
      <dc:creator>PaulaC</dc:creator>
      <dc:date>2017-06-24T23:44:55Z</dc:date>
    </item>
  </channel>
</rss>

