<?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: Dealing with CLASS with more than 2 variables in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Dealing-with-CLASS-with-more-than-2-variables/m-p/56413#M2602</link>
    <description>Just as mfisher said.&lt;BR /&gt;
Use ' proc glm' + ' means /schette ' statement. '/schette' is what i forgot.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
    <pubDate>Thu, 30 Dec 2010 08:50:13 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2010-12-30T08:50:13Z</dc:date>
    <item>
      <title>Dealing with CLASS with more than 2 variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Dealing-with-CLASS-with-more-than-2-variables/m-p/56411#M2600</link>
      <description>Hi All,&lt;BR /&gt;
&lt;BR /&gt;
I have a ' day' variable and it is divided in 'Morning' , 'Noon' and 'Evening'. I have also the 'TimeSpent' in each of these parts. I want to test if there is any statistical difference in the mean time spent in each of the three parts of the 'day'. When  I use:-&lt;BR /&gt;
&lt;BR /&gt;
proc ttest data=data;&lt;BR /&gt;
class day;&lt;BR /&gt;
var TimeSpent;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Error:-&lt;BR /&gt;
&lt;BR /&gt;
The CLASS variable has more than two levels.&lt;BR /&gt;
&lt;BR /&gt;
Kindly guide how to deal with this.&lt;BR /&gt;
&lt;BR /&gt;
Kind Regards,&lt;BR /&gt;
Kritanjli</description>
      <pubDate>Wed, 29 Dec 2010 21:31:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Dealing-with-CLASS-with-more-than-2-variables/m-p/56411#M2600</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-12-29T21:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with CLASS with more than 2 variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Dealing-with-CLASS-with-more-than-2-variables/m-p/56412#M2601</link>
      <description>proc glm data=data;&lt;BR /&gt;
class day;&lt;BR /&gt;
var TimeSpent;&lt;BR /&gt;
run;</description>
      <pubDate>Wed, 29 Dec 2010 23:57:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Dealing-with-CLASS-with-more-than-2-variables/m-p/56412#M2601</guid>
      <dc:creator>mfisher</dc:creator>
      <dc:date>2010-12-29T23:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with CLASS with more than 2 variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Dealing-with-CLASS-with-more-than-2-variables/m-p/56413#M2602</link>
      <description>Just as mfisher said.&lt;BR /&gt;
Use ' proc glm' + ' means /schette ' statement. '/schette' is what i forgot.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Thu, 30 Dec 2010 08:50:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Dealing-with-CLASS-with-more-than-2-variables/m-p/56413#M2602</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2010-12-30T08:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with CLASS with more than 2 variables</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Dealing-with-CLASS-with-more-than-2-variables/m-p/56414#M2603</link>
      <description>Actually, it should be:&lt;BR /&gt;
proc glm data=data;&lt;BR /&gt;
class day;&lt;BR /&gt;
model TimeSpent = day;&lt;BR /&gt;
lsmeans day / pdiff;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Note: you may have clustering with your data, if you are recording/measuring the same individuals at each of these times (a type of repeated measures). That is, with three values per subject (I call it id here). Would have to know more information, but you could handle in a simple way, if &lt;BR /&gt;
proc mixed data=data;&lt;BR /&gt;
class id day;&lt;BR /&gt;
model TimeSpent = day;&lt;BR /&gt;
random id;&lt;BR /&gt;
lsmeans day / pdiff;&lt;BR /&gt;
run;</description>
      <pubDate>Thu, 30 Dec 2010 14:35:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Dealing-with-CLASS-with-more-than-2-variables/m-p/56414#M2603</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2010-12-30T14:35:17Z</dc:date>
    </item>
  </channel>
</rss>

