<?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 measures in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-mixed-repeated-measures/m-p/128608#M6744</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;Came across this in the Procedures forum, and answered there.&amp;nbsp; Here is the gist of what I said:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might try:&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 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, this may be too computationally intense for PROC MIXED.&amp;nbsp; If you have access to PROC HPMIXED, it may be the tool of choice.&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:30:52 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2012-09-24T12:30:52Z</dc:date>
    <item>
      <title>Proc mixed repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-mixed-repeated-measures/m-p/128607#M6743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Hello,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&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 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&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 factor 'industry'. Additionally i want to get the firm specific time effect (residual).&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;In the first step I dont want any covariates.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I tried the following&amp;nbsp; proc mixed procedure code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc mixed noclprint covtest;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;class firm industry;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;model profit = /solution ddfm=bw;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;random intercept/sub=firm;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;random intercept/sub=industry;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&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 style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;would be nice if you could help me!&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Thanks Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 09:06:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-mixed-repeated-measures/m-p/128607#M6743</guid>
      <dc:creator>alexprocmixed</dc:creator>
      <dc:date>2012-09-24T09:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc mixed repeated measures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-mixed-repeated-measures/m-p/128608#M6744</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;Came across this in the Procedures forum, and answered there.&amp;nbsp; Here is the gist of what I said:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might try:&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 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, this may be too computationally intense for PROC MIXED.&amp;nbsp; If you have access to PROC HPMIXED, it may be the tool of choice.&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:30:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-mixed-repeated-measures/m-p/128608#M6744</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-09-24T12:30:52Z</dc:date>
    </item>
  </channel>
</rss>

