<?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: Bar Chart And Chi-Squared Test in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Bar-Chart-And-Chi-Squared-Test/m-p/849101#M335716</link>
    <description>Thank you for your feedback.&lt;BR /&gt;Is there any way to do it immediately from the CSV file?</description>
    <pubDate>Mon, 12 Dec 2022 14:15:21 GMT</pubDate>
    <dc:creator>wespol</dc:creator>
    <dc:date>2022-12-12T14:15:21Z</dc:date>
    <item>
      <title>Bar Chart And Chi-Squared Test</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bar-Chart-And-Chi-Squared-Test/m-p/849038#M335685</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a CSV file similar to this one:&lt;/P&gt;&lt;PRE&gt;;Red;Blue;Green;Yellow;Black
Group 1;472;124;577;242;367
Group 2;272;97;715;252;255
Group 3;246;233;121;144;209&lt;/PRE&gt;&lt;P&gt;And I would like to get a bar chart such as the following, then do a chi-squared test:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="diag.png" style="width: 511px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78329i824E1F73C3108414/image-size/large?v=v2&amp;amp;px=999" role="button" title="diag.png" alt="diag.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can't find a solution by browsing the documentation; could someone please help me?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 01:39:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bar-Chart-And-Chi-Squared-Test/m-p/849038#M335685</guid>
      <dc:creator>wespol</dc:creator>
      <dc:date>2022-12-12T01:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart And Chi-Squared Test</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bar-Chart-And-Chi-Squared-Test/m-p/849039#M335686</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards truncover dlm=';';
input group :$40. Red Blue Green Yellow Black;
cards4;
Group 1;472;124;577;242;367
Group 2;272;97;715;252;255
Group 3;246;233;121;144;209
;;;;

proc transpose data=have out=want;
by group;
var _numeric_;
run;

proc sgplot data=want;
vbar _name_/group=group response=col1  groupdisplay=cluster;
xaxis label=' ';
yaxis label=' ';
run;


proc freq data=want;
table _name_*group/chisq ;
weight col1;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Dec 2022 03:30:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bar-Chart-And-Chi-Squared-Test/m-p/849039#M335686</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-12-12T03:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart And Chi-Squared Test</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bar-Chart-And-Chi-Squared-Test/m-p/849101#M335716</link>
      <description>Thank you for your feedback.&lt;BR /&gt;Is there any way to do it immediately from the CSV file?</description>
      <pubDate>Mon, 12 Dec 2022 14:15:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bar-Chart-And-Chi-Squared-Test/m-p/849101#M335716</guid>
      <dc:creator>wespol</dc:creator>
      <dc:date>2022-12-12T14:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart And Chi-Squared Test</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bar-Chart-And-Chi-Squared-Test/m-p/849139#M335723</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437657"&gt;@wespol&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thank you for your feedback.&lt;BR /&gt;Is there any way to do it immediately from the CSV file?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;SAS basically works with SAS data sets. So read an external file, such as CSV, into a data set and then do analysis or other actions with that data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 16:26:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bar-Chart-And-Chi-Squared-Test/m-p/849139#M335723</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-12-12T16:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart And Chi-Squared Test</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bar-Chart-And-Chi-Squared-Test/m-p/849306#M335790</link>
      <description>&lt;P&gt;Sure .It is easy to read CSV into SAS .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile='c:\temp\have.csv' out=have dbms=csv replace;
delimiter=';';
guessingrows=max;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Dec 2022 02:33:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bar-Chart-And-Chi-Squared-Test/m-p/849306#M335790</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-12-13T02:33:24Z</dc:date>
    </item>
  </channel>
</rss>

