<?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 Error Message in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-GLM-Error-Message/m-p/287338#M59547</link>
    <description>&lt;P&gt;Post your log and look at output from proc freq on variable. My guess is you misspelled the variable name?&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2016 20:45:02 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-07-26T20:45:02Z</dc:date>
    <item>
      <title>PROC GLM Error Message</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-GLM-Error-Message/m-p/287337#M59546</link>
      <description>&lt;P&gt;I am receiving the following error in the log after submitting this PROC GLM code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc glm data=dsn;
by segment;
class trim model category subsegment;
model price = trim model age category subsegment;
quit;&lt;/PRE&gt;&lt;P&gt;The error is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"One or more variables are missing or freq or weight is zero on every observation."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know the error is coming from the subsegment variable because I added the variables one at a time before getting an error with subsegment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure how to diagnose the source of the error. Subsegment does have a 2% missing rate, but not all values are missing. Besides, I thought PROC GLM would simply exclude observations with missing input values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone provide help on the source of this error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dhrumil Patel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 20:34:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-GLM-Error-Message/m-p/287337#M59546</guid>
      <dc:creator>dhrumil_patel</dc:creator>
      <dc:date>2016-07-26T20:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM Error Message</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-GLM-Error-Message/m-p/287338#M59547</link>
      <description>&lt;P&gt;Post your log and look at output from proc freq on variable. My guess is you misspelled the variable name?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 20:45:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-GLM-Error-Message/m-p/287338#M59547</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-07-26T20:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM Error Message</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-GLM-Error-Message/m-p/287340#M59548</link>
      <description>&lt;P&gt;GLM does separate analysis for every BY-value. Check that subsegment is not entirely missing for one of the segments.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 20:47:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-GLM-Error-Message/m-p/287340#M59548</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-07-26T20:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM Error Message</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-GLM-Error-Message/m-p/287341#M59549</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked it wasn't from misspelling the variable name. It was because of my BY statement. There were combinations of segment and subsegment where the values were completely missing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dhrumil&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 20:50:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-GLM-Error-Message/m-p/287341#M59549</guid>
      <dc:creator>dhrumil_patel</dc:creator>
      <dc:date>2016-07-26T20:50:07Z</dc:date>
    </item>
  </channel>
</rss>

