<?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 CARDS statement format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/CARDS-statement-format/m-p/467037#M119194</link>
    <description>&lt;P&gt;Hello I want to read in a small dataset and just want to make sure my format is correct. I have 4 groups and 5 observations per group.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a feeling&amp;nbsp; its wrong because when i run a chi square test i'm getting " . " as some of the calculated values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA q3; 
INPUT drug $ response ;
CARDS ;
a 42 17 24 39 43 
b 28 50 44 32 61
c 57 45 48 41 54
d 29 40 22 34 30
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 01 Jun 2018 21:28:14 GMT</pubDate>
    <dc:creator>iressa131</dc:creator>
    <dc:date>2018-06-01T21:28:14Z</dc:date>
    <item>
      <title>CARDS statement format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CARDS-statement-format/m-p/467037#M119194</link>
      <description>&lt;P&gt;Hello I want to read in a small dataset and just want to make sure my format is correct. I have 4 groups and 5 observations per group.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a feeling&amp;nbsp; its wrong because when i run a chi square test i'm getting " . " as some of the calculated values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA q3; 
INPUT drug $ response ;
CARDS ;
a 42 17 24 39 43 
b 28 50 44 32 61
c 57 45 48 41 54
d 29 40 22 34 30
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Jun 2018 21:28:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CARDS-statement-format/m-p/467037#M119194</guid>
      <dc:creator>iressa131</dc:creator>
      <dc:date>2018-06-01T21:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: CARDS statement format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/CARDS-statement-format/m-p/467038#M119195</link>
      <description>&lt;P&gt;Your input statement should have enough variables to match your data but you only list two. Do you want the data to look as shown or do you want it reformatted to a long format like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;a 42&lt;/P&gt;
&lt;P&gt;a 17&lt;/P&gt;
&lt;P&gt;a 24&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want the wide format, add the rest of the variables to your list, reponse1-response5.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want the long format you need to use a trailing&amp;nbsp;@@ to hold the line when reading the data.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 21:35:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/CARDS-statement-format/m-p/467038#M119195</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-01T21:35:31Z</dc:date>
    </item>
  </channel>
</rss>

