<?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 How increasing the number of decimals in proc genmod outputs in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-increasing-the-number-of-decimals-in-proc-genmod-outputs/m-p/525675#M4997</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I was wondering how&amp;nbsp;increasing the number of decimal in the outputs of PROC GENMOD?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With this very simple model:&lt;/P&gt;
&lt;P&gt;proc genmod data=SHARE.shareHI ;&lt;BR /&gt; class id;&lt;BR /&gt; model diff_hi=age_num&amp;nbsp;&lt;SPAN&gt;age_num&amp;nbsp;*age_num&amp;nbsp;&lt;/SPAN&gt; / dist=n ;&lt;BR /&gt; repeated subject=id / type=exch; /&lt;BR /&gt; weight pond;&lt;BR /&gt; output out=work.predicted p=PredictedValue;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have this output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Genmod: Analysis Of GEE Parameter Estimates - Empirical Std Errors" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="7" scope="colgroup"&gt;Analysis Of GEE Parameter Estimates&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="7" scope="colgroup"&gt;Empirical Standard Error Estimates&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l b header" scope="col"&gt;Parameter&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Estimate&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Standard&lt;BR /&gt;Error&lt;/TH&gt;
&lt;TH class="c b header" colspan="2" scope="colgroup"&gt;95% Confidence Limits&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Z&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Pr&amp;nbsp;&amp;gt;&amp;nbsp;|Z|&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Intercept&lt;/TH&gt;
&lt;TD class="r data"&gt;0.0274&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0230&lt;/TD&gt;
&lt;TD class="r data"&gt;-0.0176&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0724&lt;/TD&gt;
&lt;TD class="r data"&gt;1.19&lt;/TD&gt;
&lt;TD class="r data"&gt;0.2324&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;age_num&lt;/TH&gt;
&lt;TD class="r data"&gt;-0.0010&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0007&lt;/TD&gt;
&lt;TD class="r data"&gt;-0.0024&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0004&lt;/TD&gt;
&lt;TD class="r data"&gt;-1.39&lt;/TD&gt;
&lt;TD class="r data"&gt;0.1653&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;age_num*age_num&lt;/TH&gt;
&lt;TD class="r data"&gt;0.0000&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0000&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0000&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0000&lt;/TD&gt;
&lt;TD class="r data"&gt;2.08&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0372&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The parameter for age_num*age_num is 0.0000, but significant (but I have no idea with this outputs what is the parameter).&lt;/P&gt;
&lt;P&gt;I guess I could just multply the variable age_num by 10000, but I would prefer not touching it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Wed, 09 Jan 2019 11:00:16 GMT</pubDate>
    <dc:creator>Demographer</dc:creator>
    <dc:date>2019-01-09T11:00:16Z</dc:date>
    <item>
      <title>How increasing the number of decimals in proc genmod outputs</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-increasing-the-number-of-decimals-in-proc-genmod-outputs/m-p/525675#M4997</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I was wondering how&amp;nbsp;increasing the number of decimal in the outputs of PROC GENMOD?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With this very simple model:&lt;/P&gt;
&lt;P&gt;proc genmod data=SHARE.shareHI ;&lt;BR /&gt; class id;&lt;BR /&gt; model diff_hi=age_num&amp;nbsp;&lt;SPAN&gt;age_num&amp;nbsp;*age_num&amp;nbsp;&lt;/SPAN&gt; / dist=n ;&lt;BR /&gt; repeated subject=id / type=exch; /&lt;BR /&gt; weight pond;&lt;BR /&gt; output out=work.predicted p=PredictedValue;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have this output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Genmod: Analysis Of GEE Parameter Estimates - Empirical Std Errors" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="7" scope="colgroup"&gt;Analysis Of GEE Parameter Estimates&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="7" scope="colgroup"&gt;Empirical Standard Error Estimates&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l b header" scope="col"&gt;Parameter&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Estimate&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Standard&lt;BR /&gt;Error&lt;/TH&gt;
&lt;TH class="c b header" colspan="2" scope="colgroup"&gt;95% Confidence Limits&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Z&lt;/TH&gt;
&lt;TH class="r b header" scope="col"&gt;Pr&amp;nbsp;&amp;gt;&amp;nbsp;|Z|&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;Intercept&lt;/TH&gt;
&lt;TD class="r data"&gt;0.0274&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0230&lt;/TD&gt;
&lt;TD class="r data"&gt;-0.0176&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0724&lt;/TD&gt;
&lt;TD class="r data"&gt;1.19&lt;/TD&gt;
&lt;TD class="r data"&gt;0.2324&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;age_num&lt;/TH&gt;
&lt;TD class="r data"&gt;-0.0010&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0007&lt;/TD&gt;
&lt;TD class="r data"&gt;-0.0024&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0004&lt;/TD&gt;
&lt;TD class="r data"&gt;-1.39&lt;/TD&gt;
&lt;TD class="r data"&gt;0.1653&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TH class="l rowheader" scope="row"&gt;age_num*age_num&lt;/TH&gt;
&lt;TD class="r data"&gt;0.0000&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0000&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0000&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0000&lt;/TD&gt;
&lt;TD class="r data"&gt;2.08&lt;/TD&gt;
&lt;TD class="r data"&gt;0.0372&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The parameter for age_num*age_num is 0.0000, but significant (but I have no idea with this outputs what is the parameter).&lt;/P&gt;
&lt;P&gt;I guess I could just multply the variable age_num by 10000, but I would prefer not touching it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Jan 2019 11:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-increasing-the-number-of-decimals-in-proc-genmod-outputs/m-p/525675#M4997</guid>
      <dc:creator>Demographer</dc:creator>
      <dc:date>2019-01-09T11:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: How increasing the number of decimals in proc genmod outputs</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-increasing-the-number-of-decimals-in-proc-genmod-outputs/m-p/525699#M4999</link>
      <description>&lt;P&gt;There are two ways. The display of every table in SAS is controlled&amp;nbsp;by a template, and you can edit a template to get more precision in the numbers that are displayed. However, since you posted this to the New User's community, I will suggest a simpler solution. You can &lt;A href="https://blogs.sas.com/content/iml/2017/01/09/ods-output-any-statistic.html" target="_self"&gt;use the ODS OUTPUT statement to save any SAS table to a data set&lt;/A&gt;. You can then use PROC PRINT to display the data set with as much precision as you want. For example, here is some code that demonstrates how to save the&amp;nbsp;GEEEmpPEst table (the one you are interested in) to a data set and then&lt;A href="https://blogs.sas.com/content/sgf/2017/05/30/the-best-d-formats-that-you-have-ever-seen/" target="_self"&gt; use the BESTDw. format&amp;nbsp;&lt;/A&gt;&amp;nbsp;to display the values with extra precision:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc genmod data=SHARE.shareHI;
class id;
model diff_hi = age_num age_num*age_num  / dist=n ;
repeated subject=id / type=exch; 
weight pond;
output out=work.predicted p=PredictedValue;
ods output GEEEmpPEst=GEEEst;  /* &amp;lt;== save table to data set */
run;

proc print data=GEEEst;
format Estimate Stderr LowerCL UpperCL BestD16.; /* set format for variables */
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Jan 2019 13:03:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-increasing-the-number-of-decimals-in-proc-genmod-outputs/m-p/525699#M4999</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-01-09T13:03:03Z</dc:date>
    </item>
  </channel>
</rss>

