<?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 GLM and number of levels &amp;gt;32767 in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-and-number-of-levels-gt-32767/m-p/720350#M34872</link>
    <description>The "levels" of a variable just means the distinct values of the variable in the data. From this and your previous post about "fixed effects" I assume you mean a model which avoids estimation of parameters for the many levels in that variable. You can do that using the ABSORB statement. Details on this and other fixed effects models are in the book "Fixed Effects Regression Methods for Longitudinal Data Using SAS"  (Allison, P., SAS Institute, 2005).</description>
    <pubDate>Thu, 18 Feb 2021 22:55:19 GMT</pubDate>
    <dc:creator>StatDave</dc:creator>
    <dc:date>2021-02-18T22:55:19Z</dc:date>
    <item>
      <title>PROC GLM and number of levels &gt;32767</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-and-number-of-levels-gt-32767/m-p/720344#M34869</link>
      <description>&lt;P&gt;Hi all, today, when I try to run a regression by using PROC GLM, I face this problem&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: Number of levels for some effects &amp;gt; 32767.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;My code is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname input 'C:\Users\pnguyen\OneDrive - Massey University\PhD JOURNEY\leniency &amp;amp; operating\datasas' access=readonly;
proc copy inlib=input outlib=work mt=data;
run;

proc glm data=work.merge_treat_con;
    class type yr;
    model wtot_ass_tur = pt type yr/solution ss3;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I am wondering what does this mean regarding the word "&lt;CODE class=" language-sas"&gt;levels&lt;/CODE&gt;" mean in this error? And how come we overcome this limitation or any alternative solution?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warmest regards.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 22:46:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-and-number-of-levels-gt-32767/m-p/720344#M34869</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-02-18T22:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM and number of levels &gt;32767</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-and-number-of-levels-gt-32767/m-p/720350#M34872</link>
      <description>The "levels" of a variable just means the distinct values of the variable in the data. From this and your previous post about "fixed effects" I assume you mean a model which avoids estimation of parameters for the many levels in that variable. You can do that using the ABSORB statement. Details on this and other fixed effects models are in the book "Fixed Effects Regression Methods for Longitudinal Data Using SAS"  (Allison, P., SAS Institute, 2005).</description>
      <pubDate>Thu, 18 Feb 2021 22:55:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-and-number-of-levels-gt-32767/m-p/720350#M34872</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-02-18T22:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM and number of levels &gt;32767</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-and-number-of-levels-gt-32767/m-p/720354#M34873</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your reply. However,is there any accessible source online for this book (like SAS documents) or I need to buy this book, I try to search from my school's library but there is no book like this available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="My97_0-1613689315565.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54920i371BDFE24832A587/image-size/large?v=v2&amp;amp;px=999" role="button" title="My97_0-1613689315565.png" alt="My97_0-1613689315565.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I did search via your link previously from this discussion(&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/Fixed-effect-regressions/td-p/171442)" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/Fixed-effect-regressions/td-p/171442)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;but it does not work now&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="My97_0-1613689776438.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54921i01600C55D7D972F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="My97_0-1613689776438.png" alt="My97_0-1613689776438.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 23:09:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-and-number-of-levels-gt-32767/m-p/720354#M34873</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-02-18T23:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM and number of levels &gt;32767</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-and-number-of-levels-gt-32767/m-p/720356#M34874</link>
      <description>CLASS statement is for categorical variables. It's saying one of your categorical variables, type or YR has more than 32k unique values which means it's likely not categorical and doesn't belong in the CLASS statement. &lt;BR /&gt;&lt;BR /&gt;When learning a procedure, first work through the examples in the documentation, then search on lexjansen.com for that procedure and the term workshop or tutorial to learn about it.</description>
      <pubDate>Thu, 18 Feb 2021 23:06:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-and-number-of-levels-gt-32767/m-p/720356#M34874</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-02-18T23:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM and number of levels &gt;32767</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-and-number-of-levels-gt-32767/m-p/720365#M34877</link>
      <description>I believe you can still find it if you do an internet search</description>
      <pubDate>Fri, 19 Feb 2021 00:05:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-and-number-of-levels-gt-32767/m-p/720365#M34877</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-02-19T00:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM and number of levels &gt;32767</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-and-number-of-levels-gt-32767/m-p/720791#M34899</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I promise that I already searched for a while but there is no pdf version available.&lt;/P&gt;
&lt;P&gt;Is there any help from the SAS community...I really want to learn and broaden my knowledge.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warmest regards.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2021 22:08:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-and-number-of-levels-gt-32767/m-p/720791#M34899</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-02-21T22:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM and number of levels &gt;32767</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-and-number-of-levels-gt-32767/m-p/720959#M34905</link>
      <description>Is this not the correct book?&lt;BR /&gt;&lt;A href="https://www.amazon.com/Fixed-Effects-Regression-Methods-Longitudinal/dp/1590475682" target="_blank"&gt;https://www.amazon.com/Fixed-Effects-Regression-Methods-Longitudinal/dp/1590475682&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Feb 2021 16:43:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-and-number-of-levels-gt-32767/m-p/720959#M34905</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-02-22T16:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM and number of levels &gt;32767</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-and-number-of-levels-gt-32767/m-p/720972#M34907</link>
      <description>That's the one.</description>
      <pubDate>Mon, 22 Feb 2021 17:12:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-GLM-and-number-of-levels-gt-32767/m-p/720972#M34907</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2021-02-22T17:12:38Z</dc:date>
    </item>
  </channel>
</rss>

