<?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: Why are my numeric values disappearing for the final table? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Why-are-my-numeric-values-disappearing-for-the-final-table/m-p/952768#M47673</link>
    <description>&lt;P&gt;I don't think you ran those last two steps against the same dataset.&lt;/P&gt;
&lt;P&gt;Let's make an example dataset.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data FinalTable3;
  input Asthma_Status $ State_8 $ State_54 $ p_value ;
  label State_8 = "Colorado (N (%))"
        State_54 = "West Virginia (N (%))"
        Asthma_Status = "Current Asthma Status"
        p_value = "P-Value";
cards;
Current 992(.%) 637(.%) 0.008
Former 424(.%) 203(.%) .
;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And try running those steps:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Step 8: Print the final table with p-value */
proc print data=FinalTable3; title "Final Table with P-value"; run;

/* Step 9: Make the table presentable using PROC REPORT */
proc report data=FinalTable3 nowd headline headskip split='/';
  column Asthma_Status ('State' State_8 State_54) p_value;
  define Asthma_Status / display "Asthma Status";
  define State_8 / "Colorado (N (%))";
  define State_54 / "West Virginia (N (%))";
  define p_value / "P-Value";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Results:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1733509940569.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102745iA7411AA47DD813DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1733509940569.png" alt="Tom_0-1733509940569.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Dec 2024 18:32:29 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2024-12-06T18:32:29Z</dc:date>
    <item>
      <title>Why are my numeric values disappearing for the final table?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-are-my-numeric-values-disappearing-for-the-final-table/m-p/952765#M47671</link>
      <description>&lt;P&gt;Why are my numeric values disappearing for the final table? - and why is (%) not calculating.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/* Step 7: Add the p-value to the transposed table */&lt;BR /&gt;data FinalTable3;&lt;BR /&gt;  merge TransposedTable_freq pvalue;&lt;BR /&gt;  retain Asthma_Status State_8 State_54 p_value; /* Ensure proper column order */&lt;BR /&gt;  label State_8 = "Colorado (N (%))"&lt;BR /&gt;        State_54 = "West Virginia (N (%))"&lt;BR /&gt;        Asthma_Status = "Current Asthma Status"&lt;BR /&gt;        p_value = "P-Value";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;/* Step 8: Print the final table with p-value */&lt;BR /&gt;proc print data=FinalTable3; title "Final Table with P-value"; run;&lt;BR /&gt;&lt;BR /&gt;/* Step 9: Make the table presentable using PROC REPORT */&lt;BR /&gt;proc report data=FinalTable3 nowd headline headskip split='/';&lt;BR /&gt;  column Asthma_Status ('State' State_8 State_54) p_value;&lt;BR /&gt;  define Asthma_Status / display "Asthma Status";&lt;BR /&gt;  define State_8 / "Colorado (N (%))";&lt;BR /&gt;  define State_54 / "West Virginia (N (%))";&lt;BR /&gt;  define p_value / "P-Value";&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-12-06 at 11.05.11 AM.png" style="width: 604px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102744iC04964E55274435A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-12-06 at 11.05.11 AM.png" alt="Screenshot 2024-12-06 at 11.05.11 AM.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 18:07:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-are-my-numeric-values-disappearing-for-the-final-table/m-p/952765#M47671</guid>
      <dc:creator>laurenekerr</dc:creator>
      <dc:date>2024-12-06T18:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why are my numeric values disappearing for the final table?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-are-my-numeric-values-disappearing-for-the-final-table/m-p/952766#M47672</link>
      <description>&lt;P&gt;Any question about "why" should include the LOG from when you run the code. Many issues may generate a note or warning.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Likely examples of the INPUT data sets may be required to complete such a diagnosis. Data should be presented as working data step code that is posted into a text box opened on the forum with the &amp;lt;/&amp;gt; icon above the message windows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't see anything in the posted code that looks like it would attempt to calculate any percentage. Which would lead me to believe that problem lies earlier in your process. The output you show that looks like (.%) indicates that your process has converted two numeric variables to a single character and that the variable(s) used to create the percentage failed at that step or earlier.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 18:15:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-are-my-numeric-values-disappearing-for-the-final-table/m-p/952766#M47672</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-12-06T18:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why are my numeric values disappearing for the final table?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Why-are-my-numeric-values-disappearing-for-the-final-table/m-p/952768#M47673</link>
      <description>&lt;P&gt;I don't think you ran those last two steps against the same dataset.&lt;/P&gt;
&lt;P&gt;Let's make an example dataset.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data FinalTable3;
  input Asthma_Status $ State_8 $ State_54 $ p_value ;
  label State_8 = "Colorado (N (%))"
        State_54 = "West Virginia (N (%))"
        Asthma_Status = "Current Asthma Status"
        p_value = "P-Value";
cards;
Current 992(.%) 637(.%) 0.008
Former 424(.%) 203(.%) .
;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And try running those steps:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Step 8: Print the final table with p-value */
proc print data=FinalTable3; title "Final Table with P-value"; run;

/* Step 9: Make the table presentable using PROC REPORT */
proc report data=FinalTable3 nowd headline headskip split='/';
  column Asthma_Status ('State' State_8 State_54) p_value;
  define Asthma_Status / display "Asthma Status";
  define State_8 / "Colorado (N (%))";
  define State_54 / "West Virginia (N (%))";
  define p_value / "P-Value";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Results:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1733509940569.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/102745iA7411AA47DD813DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Tom_0-1733509940569.png" alt="Tom_0-1733509940569.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 18:32:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Why-are-my-numeric-values-disappearing-for-the-final-table/m-p/952768#M47673</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-12-06T18:32:29Z</dc:date>
    </item>
  </channel>
</rss>

