<?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 Proc mixed repeated measures in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-mixed-repeated-measures/m-p/127410#M34850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i want to estimate a model where around 5000 firms are nested in 30 industries and i have five observations per firm over the years 2004-2008.&lt;/P&gt;&lt;P&gt;I want to estimate the portion of variance in firm profits that is explained by the factor 'firm' and the portion explained by the 'industry'. Additionally i want to get the firm specific time effect (residual).&lt;/P&gt;&lt;P&gt;I use proc mixed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc mixed noclprint covtest;&lt;/P&gt;&lt;P&gt;class firm industry;&lt;/P&gt;&lt;P&gt;model profit = /solution ddfm=bw;&lt;/P&gt;&lt;P&gt;random intercept/sub=firm;&lt;/P&gt;&lt;P&gt;random intercept/sub=industry;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result i get shows me that i only have one subject instead of 5000. How can i tell sas that i have multiple observations per firm? i'm not sure how and if i have to use the 'repeated' option here? i dont find any examples with repeated observations per subject and two additional&amp;nbsp; levels (firm and industry in this case)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would be nice if you could help me!&lt;/P&gt;&lt;P&gt;Thanks Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Sep 2012 13:02:44 GMT</pubDate>
    <dc:creator>alexprocmixed</dc:creator>
    <dc:date>2012-09-21T13:02:44Z</dc:date>
    <item>
      <title>Proc mixed repeated measures</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-mixed-repeated-measures/m-p/127410#M34850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i want to estimate a model where around 5000 firms are nested in 30 industries and i have five observations per firm over the years 2004-2008.&lt;/P&gt;&lt;P&gt;I want to estimate the portion of variance in firm profits that is explained by the factor 'firm' and the portion explained by the 'industry'. Additionally i want to get the firm specific time effect (residual).&lt;/P&gt;&lt;P&gt;I use proc mixed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc mixed noclprint covtest;&lt;/P&gt;&lt;P&gt;class firm industry;&lt;/P&gt;&lt;P&gt;model profit = /solution ddfm=bw;&lt;/P&gt;&lt;P&gt;random intercept/sub=firm;&lt;/P&gt;&lt;P&gt;random intercept/sub=industry;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result i get shows me that i only have one subject instead of 5000. How can i tell sas that i have multiple observations per firm? i'm not sure how and if i have to use the 'repeated' option here? i dont find any examples with repeated observations per subject and two additional&amp;nbsp; levels (firm and industry in this case)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would be nice if you could help me!&lt;/P&gt;&lt;P&gt;Thanks Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2012 13:02:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-mixed-repeated-measures/m-p/127410#M34850</guid>
      <dc:creator>alexprocmixed</dc:creator>
      <dc:date>2012-09-21T13:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc mixed repeated measures</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-mixed-repeated-measures/m-p/127411#M34851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you could try:&lt;/P&gt;&lt;P&gt;proc mixed noclprint covtest;&lt;/P&gt;&lt;P&gt;class firm industry year;&lt;/P&gt;&lt;P&gt;model profit = year/solution ddfm=bw;&lt;/P&gt;&lt;P&gt;random intercept/sub=firm;&lt;/P&gt;&lt;P&gt;random intercept/sub=industry;&lt;/P&gt;&lt;P&gt;repeated year/sub=firm*industry type=ar(1);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I am going to guess that this may be somewhat intensive for proc mixed.&amp;nbsp; You may wish to consider, if you have access to it, PROC HPMIXED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 12:24:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-mixed-repeated-measures/m-p/127411#M34851</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-09-24T12:24:17Z</dc:date>
    </item>
  </channel>
</rss>

