<?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 A question about PROC MIXED in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/A-question-about-PROC-MIXED/m-p/49002#M2185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question regarding PROC MIXED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am setting up a linear mixed model as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC MIXED data=work.sample covtest;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class v1 v2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model dv = / solution;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random intercept / subject=v1 solution v vcorr;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random intercept / subject=v2 solution v vcorr;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v1 and v2 are categorical variables, each having more than 100 categories.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question 1:&lt;/P&gt;&lt;P&gt;I assume that I have set v1 and v2 to be uncorrelated. Am I right? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question 2:&lt;/P&gt;&lt;P&gt;The analysis takes me a day to complete. Is there anyway to make the syntax more efficient so that it will run faster?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question 3:&lt;/P&gt;&lt;P&gt;How can I obtain the correlation between v1 and v2? Which covariance structure should I choose? (I am only interested in (1) whether v1 and v2 are correlated, and (2) the magnitude of correlation between v1 and v2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chester&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Feb 2012 18:51:53 GMT</pubDate>
    <dc:creator>PsycResearcher</dc:creator>
    <dc:date>2012-02-08T18:51:53Z</dc:date>
    <item>
      <title>A question about PROC MIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/A-question-about-PROC-MIXED/m-p/49002#M2185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question regarding PROC MIXED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am setting up a linear mixed model as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC MIXED data=work.sample covtest;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class v1 v2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model dv = / solution;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random intercept / subject=v1 solution v vcorr;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random intercept / subject=v2 solution v vcorr;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v1 and v2 are categorical variables, each having more than 100 categories.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question 1:&lt;/P&gt;&lt;P&gt;I assume that I have set v1 and v2 to be uncorrelated. Am I right? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question 2:&lt;/P&gt;&lt;P&gt;The analysis takes me a day to complete. Is there anyway to make the syntax more efficient so that it will run faster?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question 3:&lt;/P&gt;&lt;P&gt;How can I obtain the correlation between v1 and v2? Which covariance structure should I choose? (I am only interested in (1) whether v1 and v2 are correlated, and (2) the magnitude of correlation between v1 and v2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chester&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 18:51:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/A-question-about-PROC-MIXED/m-p/49002#M2185</guid>
      <dc:creator>PsycResearcher</dc:creator>
      <dc:date>2012-02-08T18:51:53Z</dc:date>
    </item>
  </channel>
</rss>

