<?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: Question about correspondence analysis in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Question-about-correspondence-analysis/m-p/318677#M16839</link>
    <description>&lt;P&gt;Hi Rick,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your comment! After I posted my question, I realized it didn't really make sense to use only one of the variables as ID, so I combined the first two and made the change to my original posting! I just tried what you suggested, and it returned the same result so thank you for the confirmation!! You been super helpful today!&amp;nbsp;&lt;/P&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>Tue, 13 Dec 2016 19:20:04 GMT</pubDate>
    <dc:creator>jhs2171</dc:creator>
    <dc:date>2016-12-13T19:20:04Z</dc:date>
    <item>
      <title>Question about correspondence analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Question-about-correspondence-analysis/m-p/318666#M16837</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I posted a question eariler today about different statistical methods to examine relationship between binary/nominal variables in my dataset. Someone suggested correspondence analysis and here's the SAS code I used.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data tab1;&lt;BR /&gt;input sleep_place$1-12 co_sleep$13-16 onback ontummy onside;&lt;BR /&gt;datalines;&lt;BR /&gt;SafePlace No 17 26 6&lt;BR /&gt;SafePlace Yes 1 2 1&lt;BR /&gt;UnsafePlace No 14 10 4&lt;BR /&gt;UnSafePlace Yes 44 27 20&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data tab2;set tab1;&lt;BR /&gt;length newvar $ 28;&lt;BR /&gt;newvar=cat(sleep_place,co_sleep);run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics on;&lt;BR /&gt;proc corresp data=tab2 plot;&lt;BR /&gt;var onback ontummy onside;&lt;BR /&gt;id newvar;run;&lt;BR /&gt;ods graphics off;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is: Does it make sense to have one combined ID variable? &amp;nbsp;Also, is there anything I should add/delete/change?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 19:03:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Question-about-correspondence-analysis/m-p/318666#M16837</guid>
      <dc:creator>jhs2171</dc:creator>
      <dc:date>2016-12-13T19:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Question about correspondence analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Question-about-correspondence-analysis/m-p/318675#M16838</link>
      <description>&lt;P&gt;That choice of ID variable doesn't seem to be helpful. Try combining them, like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data tab1;
length ID $16;
input sleep_place $1-12 co_sleep  $13-16 onback ontummy onside;
ID = catc(sleep_place,co_sleep);
datalines;
SafePlace   No  17 26 6
SafePlace   Yes 1 2 1
UnsafePlace No  14 10 4
UnSafePlace Yes 44 27 20
;

proc corresp data=tab1;
var onback ontummy onside;
id ID;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Dec 2016 19:08:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Question-about-correspondence-analysis/m-p/318675#M16838</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-12-13T19:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Question about correspondence analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Question-about-correspondence-analysis/m-p/318677#M16839</link>
      <description>&lt;P&gt;Hi Rick,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your comment! After I posted my question, I realized it didn't really make sense to use only one of the variables as ID, so I combined the first two and made the change to my original posting! I just tried what you suggested, and it returned the same result so thank you for the confirmation!! You been super helpful today!&amp;nbsp;&lt;/P&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>Tue, 13 Dec 2016 19:20:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Question-about-correspondence-analysis/m-p/318677#M16839</guid>
      <dc:creator>jhs2171</dc:creator>
      <dc:date>2016-12-13T19:20:04Z</dc:date>
    </item>
  </channel>
</rss>

