<?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: Scatter Plot- Tetrachoric Corr in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Scatter-Plot-Tetrachoric-Corr/m-p/319037#M16871</link>
    <description>Hi Rick,&lt;BR /&gt;Thank you for your reply- Quick question in the Step 1 process:&lt;BR /&gt;proc corr data=ordinal polychoric outplc=OUT;&lt;BR /&gt;var x1-x5;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;I am not sure what 'outplc" does, did you mean outp? Also having 'polychoric' in PROC CORR gave me an error message- any suggestion?&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
    <pubDate>Wed, 14 Dec 2016 20:18:37 GMT</pubDate>
    <dc:creator>jhs2171</dc:creator>
    <dc:date>2016-12-14T20:18:37Z</dc:date>
    <item>
      <title>Scatter Plot- Tetrachoric Corr</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scatter-Plot-Tetrachoric-Corr/m-p/318987#M16861</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a scatter plot (or any graphs that are visiually appealing!) of the correlation matrix between two dichotomous variables in my dataset. I used the plrr option in PROC FREQ to get the basic statistics including tetrachoric correlation and OR. I've never created any graphs in SAS so any help would be greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 16:31:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scatter-Plot-Tetrachoric-Corr/m-p/318987#M16861</guid>
      <dc:creator>jhs2171</dc:creator>
      <dc:date>2016-12-14T16:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Scatter Plot- Tetrachoric Corr</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scatter-Plot-Tetrachoric-Corr/m-p/319004#M16866</link>
      <description>&lt;P&gt;Proc CORR - check default plots first?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 18:04:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scatter-Plot-Tetrachoric-Corr/m-p/319004#M16866</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-14T18:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Scatter Plot- Tetrachoric Corr</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scatter-Plot-Tetrachoric-Corr/m-p/319010#M16867</link>
      <description>Hello.Thank you for your reply! My question is how do I specify the tetrachoric option in the PROC CORR (i.e. GPLOT)? I've used the tetrachoric in PROC FREQ in lieu of PROC CORR so I wasn't sure how to generate a plot/graph in this case. Hope this makes sense!!</description>
      <pubDate>Wed, 14 Dec 2016 18:15:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scatter-Plot-Tetrachoric-Corr/m-p/319010#M16867</guid>
      <dc:creator>jhs2171</dc:creator>
      <dc:date>2016-12-14T18:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Scatter Plot- Tetrachoric Corr</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scatter-Plot-Tetrachoric-Corr/m-p/319028#M16868</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Geting PROC CORR to generate polychoric correlations in a data set and then plotting them is no different than for ordinary Pearson correlations. See&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;'s blog post &amp;nbsp;for a discussion in SAS 9.3.&lt;/P&gt;
&lt;P&gt;Since you didn't provide data, here is some sample data to play with. The data is from the &lt;A href="http://support.sas.com/kb/25/010.html" target="_self"&gt;SAS Sample on how to create a polychoric matrix.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data norm;
  length id $ 8;
  array x{5} x1-x5;
  do n=1 to 20;
     do i=1 to 5;
        x{i}=rannor(238423)*3+10;
     end;
     id=cats(n,'');
     keep id x1-x5;
     output;
  end;
run;
proc rank data=norm out=ordinal groups=5;
   var x1-x5;
run; 

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are three main steps to the analysis. The graph is created by using the HEATMAP statement in PROC SGPLOT, which was introduced in SAS 9.4m3.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* 1. Create OUT data set that contains correlations in matrix form */
proc corr data=ordinal polychoric outplc=OUT;
   var  x1-x5;
run;

/* 2. transpose from wide to long */
proc transpose data=Out(where=(_TYPE_="CORR"))
        name=ID out=Have(rename=(COL1=Value)  drop=_LABEL_);
var x1-x5;
by _NAME_;
run;

/* 3. Plot with scatter plot or heat map */
title "Polychoric Correlations";
proc sgplot data=Have;
heatmap x=_NAME_ y=ID / colorresponse=Value discretex discretey;
yaxis reverse display=(nolabel);
xaxis display=(nolabel);
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6377i65C00ABB120687B8/image-size/medium?v=v2&amp;amp;px=-1" border="0" alt="j.png" title="j.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 19:31:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scatter-Plot-Tetrachoric-Corr/m-p/319028#M16868</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-12-14T19:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Scatter Plot- Tetrachoric Corr</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scatter-Plot-Tetrachoric-Corr/m-p/319037#M16871</link>
      <description>Hi Rick,&lt;BR /&gt;Thank you for your reply- Quick question in the Step 1 process:&lt;BR /&gt;proc corr data=ordinal polychoric outplc=OUT;&lt;BR /&gt;var x1-x5;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;I am not sure what 'outplc" does, did you mean outp? Also having 'polychoric' in PROC CORR gave me an error message- any suggestion?&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Wed, 14 Dec 2016 20:18:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scatter-Plot-Tetrachoric-Corr/m-p/319037#M16871</guid>
      <dc:creator>jhs2171</dc:creator>
      <dc:date>2016-12-14T20:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Scatter Plot- Tetrachoric Corr</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scatter-Plot-Tetrachoric-Corr/m-p/319069#M16872</link>
      <description>&lt;P&gt;Here is a link to the documentation for the PROC CORR statement:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/procstat/68142/HTML/default/viewer.htm#procstat_corr_syntax01.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/procstat/68142/HTML/default/viewer.htm#procstat_corr_syntax01.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 22:32:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scatter-Plot-Tetrachoric-Corr/m-p/319069#M16872</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-12-14T22:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Scatter Plot- Tetrachoric Corr</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scatter-Plot-Tetrachoric-Corr/m-p/319114#M16873</link>
      <description>&lt;P&gt;Thanks for the link! I guess the polychoric option didn't work because I am using SAS 9.3? Not sure. Anyway, thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 02:58:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scatter-Plot-Tetrachoric-Corr/m-p/319114#M16873</guid>
      <dc:creator>jhs2171</dc:creator>
      <dc:date>2016-12-15T02:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Scatter Plot- Tetrachoric Corr</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Scatter-Plot-Tetrachoric-Corr/m-p/319226#M16879</link>
      <description>&lt;P&gt;The documentation says&lt;/P&gt;
&lt;P&gt;"In the Second Maintenance Release of SAS 9.3, the POLYCHORIC option has been added to the PROC CORR statement."&lt;/P&gt;
&lt;P&gt;Therefore you need 9.3m2to use the opiton. &amp;nbsp;SAS 9.3m2 was released in Aug 2012. &amp;nbsp;I strongly encourage you to upgrade to SAS 9.4. You are also missing a HUGE number of new features, especially related to ODS graphics and the SGPLOT procedure. &amp;nbsp;I mentioned the HEATMAP statement, but that is just one instance.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 10:50:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Scatter-Plot-Tetrachoric-Corr/m-p/319226#M16879</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-12-15T10:50:26Z</dc:date>
    </item>
  </channel>
</rss>

