<?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: need help in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/need-help/m-p/147349#M7763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd ask about the fact that survived is a binary data point.&amp;nbsp; But hey, what do I know &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Dec 2014 00:02:00 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2014-12-13T00:02:00Z</dc:date>
    <item>
      <title>need help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/need-help/m-p/147344#M7758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #000000; margin-top: 5px; margin-bottom: 5px; font-family: verdana, arial, helvetica, sans-serif; font-size: small;"&gt;I have data with response variable(survived = yes or no) and independent variable (class= first class, second class, third class) and I want to do multiple comparison to test whether b co-efficient of class 1 = class 2 using SAS.&lt;/P&gt;&lt;P style="color: #000000; margin-top: 5px; margin-bottom: 5px; font-family: verdana, arial, helvetica, sans-serif; font-size: small;"&gt;I was trying proc glm along with contrast statement. Can anyone please help how to structure this code to test at alpha level 0.01.&lt;/P&gt;&lt;P style="color: #000000; margin-top: 5px; margin-bottom: 5px; font-family: verdana, arial, helvetica, sans-serif; font-size: small;"&gt;So far, I have used&lt;/P&gt;&lt;P style="color: #000000; margin-top: 5px; margin-bottom: 5px; font-family: verdana, arial, helvetica, sans-serif; font-size: small;"&gt;proc glm data=titanic;&lt;/P&gt;&lt;P style="color: #000000; margin-top: 5px; margin-bottom: 5px; font-family: verdana, arial, helvetica, sans-serif; font-size: small;"&gt;class class;&lt;/P&gt;&lt;P style="color: #000000; margin-top: 5px; margin-bottom: 5px; font-family: verdana, arial, helvetica, sans-serif; font-size: small;"&gt;model survived=class;&lt;/P&gt;&lt;P style="color: #000000; margin-top: 5px; margin-bottom: 5px; font-family: verdana, arial, helvetica, sans-serif; font-size: small;"&gt;contrast 'hypotheis' , class 1 vs class 2 alpha=0.01;&lt;/P&gt;&lt;P style="color: #000000; margin-top: 5px; margin-bottom: 5px; font-family: verdana, arial, helvetica, sans-serif; font-size: small;"&gt;run;&lt;/P&gt;&lt;P style="color: #000000; margin-top: 5px; margin-bottom: 5px; font-family: verdana, arial, helvetica, sans-serif; font-size: small;"&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 00:30:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/need-help/m-p/147344#M7758</guid>
      <dc:creator>stats</dc:creator>
      <dc:date>2014-12-12T00:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/need-help/m-p/147345#M7759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couple of things:&lt;/P&gt;&lt;P&gt;1. You typically don't model binary response data with GLM, but something like proc logistic or logistic regression&lt;/P&gt;&lt;P&gt;2. The Titanic data actually has 4 class variables 1, 2, 3 and crew&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure how to write the contrast statements b/c they drive me nuts, but a basic proc logistic will produce the results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;logistic&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;=titanic;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;class&lt;/SPAN&gt; class (&lt;SPAN style="color: #0433ff;"&gt;ref&lt;/SPAN&gt;=&lt;SPAN style="color: #942193;"&gt;'1'&lt;/SPAN&gt;)/&lt;SPAN style="color: #0433ff;"&gt;param&lt;/SPAN&gt;=ref;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New';"&gt;&lt;SPAN style="color: #0433ff;"&gt;model&lt;/SPAN&gt; survived(&lt;SPAN style="color: #0433ff;"&gt;event&lt;/SPAN&gt;=&lt;SPAN style="color: #942193;"&gt;'1'&lt;/SPAN&gt;) = class;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: 'Courier New'; color: #011993;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 02:20:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/need-help/m-p/147345#M7759</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-12-12T02:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/need-help/m-p/147346#M7760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. I wanted to test this at alpha 0.01? how can I do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 02:35:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/need-help/m-p/147346#M7760</guid>
      <dc:creator>stats</dc:creator>
      <dc:date>2014-12-12T02:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/need-help/m-p/147347#M7761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe, though not certain, when you test something with a particular alpha, you're checking to see if the p-value is above or below that value to make your judgement of significance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a good reference on contrast/estimate statements in SAS:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings11/351-2011.pdf" title="http://support.sas.com/resources/papers/proceedings11/351-2011.pdf"&gt;http://support.sas.com/resources/papers/proceedings11/351-2011.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 02:43:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/need-help/m-p/147347#M7761</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-12-12T02:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/need-help/m-p/147348#M7762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you everyone.&lt;/P&gt;&lt;P&gt;I asked my professor today and he told me to use this code&lt;/P&gt;&lt;P&gt;proc glm data=work.two;&lt;/P&gt;&lt;P&gt; class class;&lt;/P&gt;&lt;P&gt; model surviveds=&amp;nbsp; class ;&lt;/P&gt;&lt;P&gt; estimate 'class 1 vs. class 2' class&amp;nbsp; 1 -1 0;&lt;/P&gt;&lt;P&gt; estimate 'class 2 vs. class 3' class&amp;nbsp; 0 1 -1;&lt;/P&gt;&lt;P&gt; estimate 'class 1 vs. class 3' class&amp;nbsp; 1 0 -1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;and dis worked. just posting for info&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 23:51:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/need-help/m-p/147348#M7762</guid>
      <dc:creator>stats</dc:creator>
      <dc:date>2014-12-12T23:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/need-help/m-p/147349#M7763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd ask about the fact that survived is a binary data point.&amp;nbsp; But hey, what do I know &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Dec 2014 00:02:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/need-help/m-p/147349#M7763</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-12-13T00:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/need-help/m-p/147350#M7764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello reeza&lt;/P&gt;&lt;P&gt;I asked sas techncial support for help and even dey told glm is not used for binary data. They forwarded me with code using proc logistic. while i was discussing he did not clear this point. so i am still confused. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Dec 2014 00:14:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/need-help/m-p/147350#M7764</guid>
      <dc:creator>stats</dc:creator>
      <dc:date>2014-12-13T00:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/need-help/m-p/147351#M7765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm glad to hear this is only a course problem and not part of some research as I would think that GENDER and AGE should also be included in the model. But hey, what do I know &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Dec 2014 04:38:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/need-help/m-p/147351#M7765</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-12-13T04:38:34Z</dc:date>
    </item>
  </channel>
</rss>

