<?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 - class statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-GLM-class-statement/m-p/546780#M151451</link>
    <description>&lt;P&gt;sorry the code I used is this&lt;/P&gt;&lt;P&gt;proc means data=project mean ;&lt;BR /&gt;class sex age ;&lt;BR /&gt;var rate&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;where age in (4 5) &amp;amp; sex in ("t" );&lt;BR /&gt;run;&lt;BR /&gt;proc ttest data = Project;&lt;BR /&gt;class sex age;&lt;BR /&gt;var rate ;&lt;BR /&gt;where&amp;nbsp; age in (4 5) &amp;amp; sex in ("t");&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the ttest did not work&amp;nbsp; prob with "sex" in class&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Mar 2019 03:21:01 GMT</pubDate>
    <dc:creator>ralphbenno</dc:creator>
    <dc:date>2019-03-28T03:21:01Z</dc:date>
    <item>
      <title>PROC GLM - class statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GLM-class-statement/m-p/546779#M151450</link>
      <description>&lt;P&gt;I want to test rate of&amp;nbsp; "t"&amp;nbsp; between age 4 and 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc means data=project mean ;&lt;BR /&gt;class sex age ;&lt;BR /&gt;var rate&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;where age in (4 5) &amp;amp; sex in ("t" );&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"this code shows me the mean for "t" for age 4 and age 5&lt;/P&gt;&lt;P&gt;then I use the ttest&amp;nbsp; then I get error&amp;nbsp;&amp;nbsp; did not run&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc ttest data = Project;&lt;BR /&gt;class age &amp;amp; sex ;&lt;BR /&gt;var rate age;&lt;BR /&gt;where&amp;nbsp; age in (4 5) &amp;amp; sex in ("t");&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;help help&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 03:16:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GLM-class-statement/m-p/546779#M151450</guid>
      <dc:creator>ralphbenno</dc:creator>
      <dc:date>2019-03-28T03:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM - class statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GLM-class-statement/m-p/546780#M151451</link>
      <description>&lt;P&gt;sorry the code I used is this&lt;/P&gt;&lt;P&gt;proc means data=project mean ;&lt;BR /&gt;class sex age ;&lt;BR /&gt;var rate&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;where age in (4 5) &amp;amp; sex in ("t" );&lt;BR /&gt;run;&lt;BR /&gt;proc ttest data = Project;&lt;BR /&gt;class sex age;&lt;BR /&gt;var rate ;&lt;BR /&gt;where&amp;nbsp; age in (4 5) &amp;amp; sex in ("t");&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the ttest did not work&amp;nbsp; prob with "sex" in class&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 03:21:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GLM-class-statement/m-p/546780#M151451</guid>
      <dc:creator>ralphbenno</dc:creator>
      <dc:date>2019-03-28T03:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM - class statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GLM-class-statement/m-p/546781#M151452</link>
      <description>&lt;P&gt;Your title says PROC GLM but you're running PROC TTEST. Which type of test are you trying to run?&lt;/P&gt;
&lt;P&gt;If you have a single CLASS variable either procedure gives you the same result. PROC GLM can handle multiple CLASS variables, but unfortunately PROC TTEST cannot. If you need two iterations, you'll have to run it twice.&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/260928"&gt;@ralphbenno&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;sorry the code I used is this&lt;/P&gt;
&lt;P&gt;proc means data=project mean ;&lt;BR /&gt;class sex age ;&lt;BR /&gt;var rate&amp;nbsp; ;&lt;/P&gt;
&lt;P&gt;where age in (4 5) &amp;amp; sex in ("t" );&lt;BR /&gt;run;&lt;BR /&gt;proc ttest data = Project;&lt;BR /&gt;class sex age;&lt;BR /&gt;var rate ;&lt;BR /&gt;where&amp;nbsp; age in (4 5) &amp;amp; sex in ("t");&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the ttest did not work&amp;nbsp; prob with "sex" in class&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 03:42:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GLM-class-statement/m-p/546781#M151452</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-03-28T03:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM - class statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GLM-class-statement/m-p/546876#M151492</link>
      <description>&lt;P&gt;sorry for the confusion&lt;/P&gt;&lt;P&gt;I want to do a t test using multiple class for the column and row&lt;/P&gt;&lt;P&gt;do I use&lt;/P&gt;&lt;P&gt;proc glm&lt;/P&gt;&lt;P&gt;class column, row&lt;/P&gt;&lt;P&gt;var data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it right?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 12:42:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GLM-class-statement/m-p/546876#M151492</guid>
      <dc:creator>ralphbenno</dc:creator>
      <dc:date>2019-03-28T12:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: PROC GLM - class statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-GLM-class-statement/m-p/546881#M151494</link>
      <description>&lt;P&gt;It would be very helpful if you provided (a portion of) your data via SAS &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_self"&gt;data step code&lt;/A&gt;, and not in any other format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In any event, the general outline of what you want to do is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glm data=whatever;
    class x1 x2;
    model y = x1 x2 /* the interaction is optional */ x1*x2;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 12:58:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-GLM-class-statement/m-p/546881#M151494</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-03-28T12:58:04Z</dc:date>
    </item>
  </channel>
</rss>

