<?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 not able to use all obserevations in dataset in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-glm-not-able-to-use-all-obserevations-in-dataset/m-p/474087#M24659</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;You need to actually LOOK at your data, with your own eyeballs. You can use viewtable in SAS or PROC PRINT. Look for missings. That will tell you why you are having this problem.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Or even proc freq which will indicate the number of missing values per variable.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jun 2018 14:40:45 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-06-28T14:40:45Z</dc:date>
    <item>
      <title>Proc glm not able to use all obserevations in dataset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-glm-not-able-to-use-all-obserevations-in-dataset/m-p/473934#M24647</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm using SAS studio and I am having a peculiar&amp;nbsp; problem with proc glm. I am using the below command to perform an ANCOVA looking at the difference between 2 SubjectTypes (cases-214 and controls-87) on the dependent variable (AVG_skel) controlling for&amp;nbsp; age,sex,and site.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data= sublist plots=meanplot(CL) ;
class SubjectType;
model AVG_Faskel = SubjectType Age_cal sexd sited;
means SubjectType;
lsmeans SubjectType/ stderr pdiff cov out=adjmeans;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reason when I run the command the procedure only uses 9/214 cases, but all of the controls.&amp;nbsp;The log has no errors when running the procedure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried doing proc freq to get tables of the SubjectTypes and it reports the correct number in each group so it is not a problem with the class variable. I have also run proc means for the AVG_skel variable and it reports the correct means and number of people in each group.&amp;nbsp; What's even stranger is that proc glm does work with an earlier version of this file in which the AVG_skel variable has identical values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on what could be the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also included the log output:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;133&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;134 proc glm data= sublist plots=meanplot(CL) ;&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: The SAS/STAT product with which GLM is associated will be expiring soon, and is currently in warning mode to indicate this&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;upcoming expiration. Please run PROC SETINIT to obtain more information on your warning period.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;135 class group;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;136 model AVG_Faskel = group Age_cal sexd sited;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;137 means group;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;138 lsmeans group/ stderr pdiff cov out=adjmeans;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;139 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Means from the MEANS statement are not adjusted for other terms in the model. For adjusted means, use the LSMEANS statement.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;140 quit;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The data set WORK.ADJMEANS has 2 observations and 7 variables.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE GLM used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 9.10 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.92 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 23:31:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-glm-not-able-to-use-all-obserevations-in-dataset/m-p/473934#M24647</guid>
      <dc:creator>alr4655</dc:creator>
      <dc:date>2018-06-27T23:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Proc glm not able to use all obserevations in dataset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-glm-not-able-to-use-all-obserevations-in-dataset/m-p/473945#M24648</link>
      <description>&lt;P&gt;If any of these variables have a missing value, the observation is not used in the GLM procedure.&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token statement"&gt;class&lt;/SPAN&gt; SubjectType&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;model&lt;/SPAN&gt; AVG_Faskel &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; SubjectType Age_cal sexd sited&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would need to check the missing values for all 5 of the variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/168032"&gt;@alr4655&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm using SAS studio and I am having a peculiar&amp;nbsp; problem with proc glm. I am using the below command to perform an ANCOVA looking at the difference between 2 SubjectTypes (cases-214 and controls-87) on the dependent variable (AVG_skel) controlling for&amp;nbsp; age,sex,and site.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data= sublist plots=meanplot(CL) ;
class SubjectType;
model AVG_Faskel = SubjectType Age_cal sexd sited;
means SubjectType;
lsmeans SubjectType/ stderr pdiff cov out=adjmeans;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For some reason when I run the command the procedure only uses 9/214 cases, but all of the controls.&amp;nbsp;The log has no errors when running the procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried doing proc freq to get tables of the SubjectTypes and it reports the correct number in each group so it is not a problem with the class variable. I have also run proc means for the AVG_skel variable and it reports the correct means and number of people in each group.&amp;nbsp; What's even stranger is that proc glm does work with an earlier version of this file in which the AVG_skel variable has identical values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas on what could be the problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've also included the log output:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="sasSource"&gt;133&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;134 proc glm data= sublist plots=meanplot(CL) ;&lt;/DIV&gt;
&lt;DIV class="sasWarning"&gt;WARNING: The SAS/STAT product with which GLM is associated will be expiring soon, and is currently in warning mode to indicate this&lt;/DIV&gt;
&lt;DIV class="sasWarning"&gt;upcoming expiration. Please run PROC SETINIT to obtain more information on your warning period.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;135 class group;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;136 model AVG_Faskel = group Age_cal sexd sited;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;137 means group;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;138 lsmeans group/ stderr pdiff cov out=adjmeans;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;139 run;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;NOTE: Means from the MEANS statement are not adjusted for other terms in the model. For adjusted means, use the LSMEANS statement.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;140 quit;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;NOTE: The data set WORK.ADJMEANS has 2 observations and 7 variables.&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE GLM used (Total process time):&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;real time 9.10 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;cpu time 0.92 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 01:04:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-glm-not-able-to-use-all-obserevations-in-dataset/m-p/473945#M24648</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-28T01:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Proc glm not able to use all obserevations in dataset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-glm-not-able-to-use-all-obserevations-in-dataset/m-p/473952#M24649</link>
      <description>&lt;P&gt;You need to actually LOOK at your data, with your own eyeballs. You can use viewtable in SAS or PROC PRINT. Look for missings. That will tell you why you are having this problem.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 01:55:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-glm-not-able-to-use-all-obserevations-in-dataset/m-p/473952#M24649</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-06-28T01:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc glm not able to use all obserevations in dataset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-glm-not-able-to-use-all-obserevations-in-dataset/m-p/474087#M24659</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;You need to actually LOOK at your data, with your own eyeballs. You can use viewtable in SAS or PROC PRINT. Look for missings. That will tell you why you are having this problem.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Or even proc freq which will indicate the number of missing values per variable.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 14:40:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-glm-not-able-to-use-all-obserevations-in-dataset/m-p/474087#M24659</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-28T14:40:45Z</dc:date>
    </item>
  </channel>
</rss>

