<?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: Merging the Not Missing Observation also in the final Table and transpose the final Output in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-the-Not-Missing-Observation-also-in-the-final-Table-and/m-p/444745#M28764</link>
    <description>&lt;P&gt;Yes originally these variables were in a one data set.&lt;/P&gt;&lt;P&gt;But I need some relevant variables(shown below in the picture) for my missing value analysis and I have created different data sets of these selected 15 variables. Now, I have merged them all in one Data Set(FINAL_OUTPUT_ALL_MISSING) with VARNAME and MISSING PERCENT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Different Data Sets :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data Sets" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19132iB4903B6BCEFC3D36/image-size/large?v=v2&amp;amp;px=999" role="button" title="Data Sets.png" alt="Data Sets" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Data Sets&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have numeric and character variables as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Mar 2018 13:44:43 GMT</pubDate>
    <dc:creator>narulap</dc:creator>
    <dc:date>2018-03-12T13:44:43Z</dc:date>
    <item>
      <title>Merging the Not Missing Observation also in the final Table and transpose the final Output</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-the-Not-Missing-Observation-also-in-the-final-Table-and/m-p/444720#M28760</link>
      <description>&lt;P&gt;I have 10 different variables in 10 different tables with the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;VARNAME&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;MISSING PERCENT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Out of these 10, lets say 5 do not have the "MISSING PERCENT" and I want to include these observation with&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;0%&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Missing. For now, it eliminates this observation in the final output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Secondly, I have already merged the different tables containing different variables(0% still needs to be merged) as shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data Final_Output_All_Missing;&lt;BR /&gt;length VARNAME $ 30;&lt;BR /&gt; merge work.Final_Output_MOLD work.Final_output_tbm_stage2 work.final_output_article7 &lt;BR /&gt; work.final_output_tbm_stage1 work.final_output_bladder work.final_output_batch_id;&lt;BR /&gt; by varname;&lt;BR /&gt; keep VARNAME PERCENT;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;VARNAME              MISSING PERCENT&lt;BR /&gt;BLADDER               0.10&lt;BR /&gt;MOLD                  0.06&lt;BR /&gt;TBM_STAGE1            0.18&lt;BR /&gt;TBM_STAGE2            99.9    &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After merging, I want to see the output in this format. is it possible for me to get in this format?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BLADDER&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MOLD&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TBM_STAGE1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TBM_STAGE2&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.10%&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.06%&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.18%&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;99.9%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your help!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 13:00:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-the-Not-Missing-Observation-also-in-the-final-Table-and/m-p/444720#M28760</guid>
      <dc:creator>narulap</dc:creator>
      <dc:date>2018-03-12T13:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Merging the Not Missing Observation also in the final Table and transpose the final Output</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-the-Not-Missing-Observation-also-in-the-final-Table-and/m-p/444723#M28761</link>
      <description>&lt;P&gt;You want to proc transpose the data:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#transpose-overview.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#transpose-overview.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;E.g.&lt;/P&gt;
&lt;PRE&gt;proc transpose data=have out=want;
  var missing_percent;
  id varname;
  idlabel varname;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Mar 2018 13:04:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-the-Not-Missing-Observation-also-in-the-final-Table-and/m-p/444723#M28761</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-03-12T13:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Merging the Not Missing Observation also in the final Table and transpose the final Output</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-the-Not-Missing-Observation-also-in-the-final-Table-and/m-p/444739#M28763</link>
      <description>&lt;P&gt;Just in case this would have saved you a ton of work, here are a couple of relevant questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Originally, were all these variables in just one data set?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, were they all numeric?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 13:29:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-the-Not-Missing-Observation-also-in-the-final-Table-and/m-p/444739#M28763</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-03-12T13:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Merging the Not Missing Observation also in the final Table and transpose the final Output</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-the-Not-Missing-Observation-also-in-the-final-Table-and/m-p/444745#M28764</link>
      <description>&lt;P&gt;Yes originally these variables were in a one data set.&lt;/P&gt;&lt;P&gt;But I need some relevant variables(shown below in the picture) for my missing value analysis and I have created different data sets of these selected 15 variables. Now, I have merged them all in one Data Set(FINAL_OUTPUT_ALL_MISSING) with VARNAME and MISSING PERCENT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Different Data Sets :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Data Sets" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19132iB4903B6BCEFC3D36/image-size/large?v=v2&amp;amp;px=999" role="button" title="Data Sets.png" alt="Data Sets" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Data Sets&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have numeric and character variables as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 13:44:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-the-Not-Missing-Observation-also-in-the-final-Table-and/m-p/444745#M28764</guid>
      <dc:creator>narulap</dc:creator>
      <dc:date>2018-03-12T13:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Merging the Not Missing Observation also in the final Table and transpose the final Output</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-the-Not-Missing-Observation-also-in-the-final-Table-and/m-p/444756#M28766</link>
      <description>&lt;P&gt;OK, in case it would help ... here is a method for your numeric variables only, to go directly from the original data to the final result with percent of missing values:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc summary data=original_data;&lt;/P&gt;
&lt;P&gt;var numeric1 numeric2 numeric3;&lt;/P&gt;
&lt;P&gt;output out=missing_counts (drop=_type_) nmiss=;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set missing_counts;&lt;/P&gt;
&lt;P&gt;numeric1 = numeric1 / _freq_;&lt;/P&gt;
&lt;P&gt;numeric2 = numeric2 / _freq_;&lt;/P&gt;
&lt;P&gt;numeric3 = numeric3 / _freq_;&lt;/P&gt;
&lt;P&gt;drop _freq_;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc print data=want;&lt;/P&gt;
&lt;P&gt;format _numeric_ percent9.2;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 14:02:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Merging-the-Not-Missing-Observation-also-in-the-final-Table-and/m-p/444756#M28766</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-03-12T14:02:57Z</dc:date>
    </item>
  </channel>
</rss>

