<?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: GLM, Fixed Effects and the error &amp;quot;Number of levels for some effects &amp;gt; 32,767&amp;quot; in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/GLM-Fixed-Effects-and-the-error-quot-Number-of-levels-for-some/m-p/129776#M6826</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to know that my hunch pays off when somebody who knows actually checks it out.&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>Tue, 25 Sep 2012 15:25:32 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2012-09-25T15:25:32Z</dc:date>
    <item>
      <title>GLM, Fixed Effects and the error "Number of levels for some effects &gt; 32,767"</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLM-Fixed-Effects-and-the-error-quot-Number-of-levels-for-some/m-p/129772#M6822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to estimate a fixed effects model with a lot of different classes (57,601).&amp;nbsp; The problem is when I run PROC GLM, I get an error saying, "Number of levels for some effects &amp;gt; 32,767."&amp;nbsp; In other words, PROC GLM can only make 32,767 dummy variables and since 57,601 &amp;gt; 32,767, it fails.&amp;nbsp; How am I to work around this problem?&amp;nbsp; Seems like manually making dummy variables and using something like PROC REG wouldn't work because the created data set would be too large.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2012 23:47:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLM-Fixed-Effects-and-the-error-quot-Number-of-levels-for-some/m-p/129772#M6822</guid>
      <dc:creator>SColby</dc:creator>
      <dc:date>2012-09-24T23:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: GLM, Fixed Effects and the error "Number of levels for some effects &gt; 32,767"</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLM-Fixed-Effects-and-the-error-quot-Number-of-levels-for-some/m-p/129773#M6823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first thing I think of is "What in the world has 57,601 classes?"&amp;nbsp; Then I would think of ways to reduce this number--which can be consolidated?&amp;nbsp; Which are possibly continuous, so that I could remove them from the CLASS statement. Another possibility might, and I stress MIGHT, be to look into PROC HPMIXED. Use of sparse matrix techniques may help here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 11:43:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLM-Fixed-Effects-and-the-error-quot-Number-of-levels-for-some/m-p/129773#M6823</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-09-25T11:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: GLM, Fixed Effects and the error "Number of levels for some effects &gt; 32,767"</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLM-Fixed-Effects-and-the-error-quot-Number-of-levels-for-some/m-p/129774#M6824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, there are about 43,000 zip codes in the US...&amp;nbsp; However, statistical analyses based on ZIP codes has problems, which is one reason that the US government defined Metropolitan Statistical Areas (MSAs) and Core-Based Statistical Areas (CBSAs):&lt;/P&gt;&lt;P&gt;&lt;A href="http://en.wikipedia.org/wiki/List_of_United_States_core_based_statistical_areas" title="http://en.wikipedia.org/wiki/List_of_United_States_core_based_statistical_areas"&gt;List of United States core based statistical areas - Wikipedia, the free encyclopedia&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you including a large number of interaction terms? I've never seen this error, but I wonder if it could occur by not truncating the interactions. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: navy; font-family: 'Courier New'; font-size: 14pt; mso-bidi-font-weight: bold;"&gt;proc glm data=GLMData;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: navy; font-family: 'Courier New'; font-size: 14pt; mso-bidi-font-weight: bold;"&gt;class c1-c10;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: navy; font-family: 'Courier New'; font-size: 14pt; mso-bidi-font-weight: bold;"&gt;model y = c1|c2|c3|c4|c5|c6|c7|c8|c9|c10;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: navy; font-family: 'Courier New'; font-size: 14pt; mso-bidi-font-weight: bold;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 12:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLM-Fixed-Effects-and-the-error-quot-Number-of-levels-for-some/m-p/129774#M6824</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2012-09-25T12:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: GLM, Fixed Effects and the error "Number of levels for some effects &gt; 32,767"</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLM-Fixed-Effects-and-the-error-quot-Number-of-levels-for-some/m-p/129775#M6825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is true that GLM will not allow over 32767 levels. I just tried it on my 64 bit version of 9.3 (simulated 60000 levels).&amp;nbsp; You also get an error when trying to use MIXED. However, HPMIXED runs just fine (same syntax as MIXED, and similar to GLM), but this takes a while. In fact, HPMIXED was designed for problems like this. Check the documentation. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 15:17:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLM-Fixed-Effects-and-the-error-quot-Number-of-levels-for-some/m-p/129775#M6825</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2012-09-25T15:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: GLM, Fixed Effects and the error "Number of levels for some effects &gt; 32,767"</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLM-Fixed-Effects-and-the-error-quot-Number-of-levels-for-some/m-p/129776#M6826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to know that my hunch pays off when somebody who knows actually checks it out.&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>Tue, 25 Sep 2012 15:25:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLM-Fixed-Effects-and-the-error-quot-Number-of-levels-for-some/m-p/129776#M6826</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-09-25T15:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: GLM, Fixed Effects and the error "Number of levels for some effects &gt; 32,767"</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/GLM-Fixed-Effects-and-the-error-quot-Number-of-levels-for-some/m-p/129777#M6827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;HPMAX worked&lt;/STRONG&gt;!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am going to push the limit further by trying to perform a 4 equation 3 stage least squares estimate (3SLS) on these data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thanks!&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 19:38:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/GLM-Fixed-Effects-and-the-error-quot-Number-of-levels-for-some/m-p/129777#M6827</guid>
      <dc:creator>SColby</dc:creator>
      <dc:date>2012-09-25T19:38:45Z</dc:date>
    </item>
  </channel>
</rss>

