<?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: How do I use proc freq for more than 2 variables in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-use-proc-freq-for-more-than-2-variables/m-p/864350#M38190</link>
    <description>&lt;P&gt;It depends on what you want.&lt;/P&gt;
&lt;P&gt;Missing results in proc freq means that you do have missing values in the variable. Proc Freq is well tested and just because you think there aren't any missing values does not mean they aren't in the actual data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run this code to create a data set where you can see which observations in that data set have missing values for the Waistline variable.&lt;/P&gt;
&lt;PRE&gt;data temp;
   set lib.dresses;
   where missing(waistline);
run;&lt;/PRE&gt;
&lt;P&gt;You can place * between variables on the tables statement to see how two (or more) variables interact in the data. You could add the option Missing to the tables statement so the row in the table shows the missing values instead of the note at the end of table.&lt;/P&gt;
&lt;P&gt;This shows a simple listing of the combinations of neckline and waistline with the missing included.&lt;/P&gt;
&lt;PRE&gt;proc freq data=lib.dresses;
      tables Neckline * Waistline / missing list;
 run;&lt;/PRE&gt;
&lt;P&gt;Consider: If a dress does not have any sleeves what value would expect to see for Sleevelength? A value of 0 would imply that there was a sleeve but the length was 0, which seems odd to me.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Mar 2023 15:46:52 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2023-03-15T15:46:52Z</dc:date>
    <item>
      <title>How do I use proc freq for more than 2 variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-use-proc-freq-for-more-than-2-variables/m-p/864324#M38189</link>
      <description>&lt;P&gt;I am trying to do this question for my assignment, but I don't think im doing it in the best way.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the question:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hz16g22_0-1678892175414.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81584i15F546378FB1F560/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hz16g22_0-1678892175414.png" alt="hz16g22_0-1678892175414.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and this is how i did it&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;46   proc freq data=lib.dresses;
47       tables Season Style SleeveLength Neckline Waistline;
48   run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;The reason I think it's really off is because it keeps telling me there's missing frequencies for some of the variables:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hz16g22_1-1678892284522.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81585i6F8736805FCCE609/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hz16g22_1-1678892284522.png" alt="hz16g22_1-1678892284522.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there a better way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 14:58:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-use-proc-freq-for-more-than-2-variables/m-p/864324#M38189</guid>
      <dc:creator>hz16g22</dc:creator>
      <dc:date>2023-03-15T14:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use proc freq for more than 2 variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-use-proc-freq-for-more-than-2-variables/m-p/864350#M38190</link>
      <description>&lt;P&gt;It depends on what you want.&lt;/P&gt;
&lt;P&gt;Missing results in proc freq means that you do have missing values in the variable. Proc Freq is well tested and just because you think there aren't any missing values does not mean they aren't in the actual data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run this code to create a data set where you can see which observations in that data set have missing values for the Waistline variable.&lt;/P&gt;
&lt;PRE&gt;data temp;
   set lib.dresses;
   where missing(waistline);
run;&lt;/PRE&gt;
&lt;P&gt;You can place * between variables on the tables statement to see how two (or more) variables interact in the data. You could add the option Missing to the tables statement so the row in the table shows the missing values instead of the note at the end of table.&lt;/P&gt;
&lt;P&gt;This shows a simple listing of the combinations of neckline and waistline with the missing included.&lt;/P&gt;
&lt;PRE&gt;proc freq data=lib.dresses;
      tables Neckline * Waistline / missing list;
 run;&lt;/PRE&gt;
&lt;P&gt;Consider: If a dress does not have any sleeves what value would expect to see for Sleevelength? A value of 0 would imply that there was a sleeve but the length was 0, which seems odd to me.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 15:46:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-use-proc-freq-for-more-than-2-variables/m-p/864350#M38190</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-03-15T15:46:52Z</dc:date>
    </item>
  </channel>
</rss>

