<?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 Proc GLM in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Proc-GLM/m-p/1307#M80</link>
    <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I am documenting some code written by a former employee.  I am not tremendously familiar with proc GLM, but I understand the basics.  I am working with a statistician to make sure the code is doing what it should.  What would putting class variables in the model statement achieve?&lt;BR /&gt;
&lt;BR /&gt;
In our dataset, we have 3 independent variables, a1-a3, which are really just a^1, a^2, and a^3.  We have three categorical variables, c1, c2, and c3.  The procedure written is:&lt;BR /&gt;
&lt;BR /&gt;
proc glm data = mydata;&lt;BR /&gt;
	class c2 c3;&lt;BR /&gt;
	model b=a1 a2 a3 c2*c3 /noint solution ss3;&lt;BR /&gt;
	lsmeans c2*c3;&lt;BR /&gt;
	by c1;&lt;BR /&gt;
	output out=myoutput p=predicted_value;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Neither the statistician nor I could figure out what adding c2*c3 to the accomplish, since they are not continuous variables.  Any insight would be very helpful!&lt;BR /&gt;
&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Michael</description>
    <pubDate>Wed, 23 Aug 2006 14:25:16 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2006-08-23T14:25:16Z</dc:date>
    <item>
      <title>Proc GLM</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Proc-GLM/m-p/1307#M80</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I am documenting some code written by a former employee.  I am not tremendously familiar with proc GLM, but I understand the basics.  I am working with a statistician to make sure the code is doing what it should.  What would putting class variables in the model statement achieve?&lt;BR /&gt;
&lt;BR /&gt;
In our dataset, we have 3 independent variables, a1-a3, which are really just a^1, a^2, and a^3.  We have three categorical variables, c1, c2, and c3.  The procedure written is:&lt;BR /&gt;
&lt;BR /&gt;
proc glm data = mydata;&lt;BR /&gt;
	class c2 c3;&lt;BR /&gt;
	model b=a1 a2 a3 c2*c3 /noint solution ss3;&lt;BR /&gt;
	lsmeans c2*c3;&lt;BR /&gt;
	by c1;&lt;BR /&gt;
	output out=myoutput p=predicted_value;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Neither the statistician nor I could figure out what adding c2*c3 to the accomplish, since they are not continuous variables.  Any insight would be very helpful!&lt;BR /&gt;
&lt;BR /&gt;
Thank you,&lt;BR /&gt;
Michael</description>
      <pubDate>Wed, 23 Aug 2006 14:25:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Proc-GLM/m-p/1307#M80</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-08-23T14:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc GLM</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Proc-GLM/m-p/1308#M81</link>
      <description>Hello.&lt;BR /&gt;
&lt;BR /&gt;
In PROC GLM (as well as other modelling procedures), the * sign does not mean "multiply" (as I think you thought) but "cross". X2*X3 is cross-effect for X2 and X3, which means groups defined by values of BOTH X2 and X3, and not groups for X2 on one hand, and groups for X3 on another hand.&lt;BR /&gt;
Imagine you have a study of respiratory capacity (lung volume or something like that) recorded for patients, some of whom are smokers, other non-smokers ; some are men, other women.&lt;BR /&gt;
When you just test the SEX effect, you will know if lung volume is different for men and women (it usually is). When you just test the SMOKE_HABIT effect, you will know if smoking decreases the lung capacity, regardless of sex.&lt;BR /&gt;
What you test when considering the SEX*SMOKE_HABIT is if among women and men taken separately, smoking alters the respiratory capacity.&lt;BR /&gt;
&lt;BR /&gt;
I hope it is clear enough for you.</description>
      <pubDate>Mon, 18 Sep 2006 15:06:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Proc-GLM/m-p/1308#M81</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2006-09-18T15:06:11Z</dc:date>
    </item>
  </channel>
</rss>

