<?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: Two-way proc freq not showing transition to missing? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Two-way-proc-freq-not-showing-transition-to-missing/m-p/451519#M113847</link>
    <description>&lt;P&gt;Thanks for your help. You are right, I sorted my results by Current_Year and there was one instance where the Current_Year =. . It seems like the issue is somewhere in my data because there should be many more occurrences where there are transitions to null. I apologize for wasting anybody's time.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
    <pubDate>Thu, 05 Apr 2018 14:01:22 GMT</pubDate>
    <dc:creator>Tommy1</dc:creator>
    <dc:date>2018-04-05T14:01:22Z</dc:date>
    <item>
      <title>Two-way proc freq not showing transition to missing?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Two-way-proc-freq-not-showing-transition-to-missing/m-p/451485#M113837</link>
      <description>&lt;P&gt;Hi SAS Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently running a Proc Freq to create a two way table. When I run the procedure using the code below, it creates a table, but it does not include the transition from having a value to missing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc freq data=new;
tables Prior_Year*Current_Year/  out=test;
run;&lt;/PRE&gt;&lt;P&gt;An example of what my data looks like is&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Prior_Year&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Current_Year&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In this example, I would&amp;nbsp;expect out=test to look like&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Prior Year&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Current_year&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Count&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;but, it does not include the transition from 1 to when there is null in the Current_Year column. Does anyone know an option or technique that I can use to include the count of the values that start in the Prior_Year but are missing in the Current_Year. I tried the &lt;EM&gt;missing&lt;/EM&gt; option, but that didn't do anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anybody could help I would greatly appreciate it!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 12:50:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Two-way-proc-freq-not-showing-transition-to-missing/m-p/451485#M113837</guid>
      <dc:creator>Tommy1</dc:creator>
      <dc:date>2018-04-05T12:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Two-way proc freq not showing transition to missing?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Two-way-proc-freq-not-showing-transition-to-missing/m-p/451486#M113838</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;tables Prior_Year*Current_Year/  out=test missing;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Apr 2018 12:57:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Two-way-proc-freq-not-showing-transition-to-missing/m-p/451486#M113838</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-04-05T12:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Two-way proc freq not showing transition to missing?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Two-way-proc-freq-not-showing-transition-to-missing/m-p/451490#M113839</link>
      <description>&lt;P&gt;Thanks, I tried that already and it still doesn't give me the missing values. It also isn't giving me all the possible combinations like it is supposed to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 13:07:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Two-way-proc-freq-not-showing-transition-to-missing/m-p/451490#M113839</guid>
      <dc:creator>Tommy1</dc:creator>
      <dc:date>2018-04-05T13:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Two-way proc freq not showing transition to missing?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Two-way-proc-freq-not-showing-transition-to-missing/m-p/451491#M113840</link>
      <description>&lt;P&gt;Given your example data, it works:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input Prior_Year Current_Year;
cards;
1 2
1 3
1 2
1 .
;
run;

proc freq data=have noprint;
tables Prior_Year*Current_Year/ missing out=want;
run;

proc print data=want noobs;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;Prior_    Current_
 Year       Year      COUNT    PERCENT

   1          .         1         25  
   1          2         2         50  
   1          3         1         25  
&lt;/PRE&gt;
&lt;P&gt;Just the order is different.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 13:20:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Two-way-proc-freq-not-showing-transition-to-missing/m-p/451491#M113840</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-04-05T13:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Two-way proc freq not showing transition to missing?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Two-way-proc-freq-not-showing-transition-to-missing/m-p/451519#M113847</link>
      <description>&lt;P&gt;Thanks for your help. You are right, I sorted my results by Current_Year and there was one instance where the Current_Year =. . It seems like the issue is somewhere in my data because there should be many more occurrences where there are transitions to null. I apologize for wasting anybody's time.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2018 14:01:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Two-way-proc-freq-not-showing-transition-to-missing/m-p/451519#M113847</guid>
      <dc:creator>Tommy1</dc:creator>
      <dc:date>2018-04-05T14:01:22Z</dc:date>
    </item>
  </channel>
</rss>

