<?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: Changing 12E3 output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362457#M85627</link>
    <description>&lt;P&gt;You probably need to to&amp;nbsp;expand the length of the format for those variable where you experience this.&amp;nbsp;The&amp;nbsp;scientific notation is used when SAS can't fit the full value.&lt;/P&gt;</description>
    <pubDate>Mon, 29 May 2017 10:45:07 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2017-05-29T10:45:07Z</dc:date>
    <item>
      <title>Changing 12E3 output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362453#M85625</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran into a problem when outputting parts of my multilevel analyses. More specifically, my degrees of freedom are shown as 12E3 instead of the actual numerical value. A colleague of mine gave me the following syntax to run which unfortunately did not work as I am still seeing the 12E3... I am using SAS 9.4.&lt;/P&gt;&lt;P&gt;Highly appreciate your help&amp;nbsp;and tips!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
define table Stat.Mixed.FTests;                                            
      notes "F-tests table";                                                  
      column Effect Label Var NumVar Margins ByLevel AtVar NumDF DenDF ChiSq  
         FValue ProbChiSq OrdChiSq ProbF OrdF ANOVANumDF ANOVADenDF           
         ANOVAFValue ANOVAProbF ANOVAProbFinf;                                
      header anovafheader;                                                    
      define Effect;                                                          
         header = "Effect";                                                   
         style = RowHeader;                                                   
         id;                                                                  
      end;                                                                    
      define Label;                                                           
         header = "Label";                                                    
         id;                                                                  
      end;                                                                    
      define Var;                                                             
         id;                                                                  
         generic;                                                             
      end;                                                                    
      define NumVar;                                                          
         translate _val_=._ into "";                                          
         just = l;                                                            
         id;                                                                  
         generic;                                                             
      end;                                                                    
      define Margins;                                                         
         header = "Margins";                                                  
      end;                                                                    
      define ByLevel;                                                         
         header = "By Level";                                                 
      end;                                                                    
      define AtVar;                                                           
         format = 6.2;                                                        
         generic;                                                             
      end;                                                                    
      define NumDF;                                                           
         header = "Num DF";                                                   
         format = 6.0;                                                        
      end;                                                                    
      define DenDF;                                                           
         header = "Den DF";                                                   
         format = best8.;                                                     
      end;                                                                    
      define ChiSq;                                                           
         header = ";Chi-Square";                                              
         translate _val_=.I into "  Infty";                                   
         format = 7.2;                                                        
      end;                                                                    
      define FValue;                                                          
         parent = Common.ANOVA.FValue;                                        
      end;                                                                    
      define ProbChiSq;                                                       
         width = 12;                                                          
         parent = Common.ProbChiSq;                                           
      end;                                                                    
      define OrdChiSq;                                                        
         header = "Ord ChiSq";                                                
         format = 6.4;                                                        
      end;                                                                    
      define ProbF;                                                           
         parent = Common.ANOVA.ProbF;                                         
      end;                                                                    
      define OrdF;                                                            
         header = "Ord F";                                                    
         format = 6.4;                                                        
      end;                                                                    
      define anovafheader;                                                    
         text "ANOVA F";                                                      
         space = 0;                                                           
         expand = "-";                                                        
         end = ANOVAProbFInf;                                                 
         start = ANOVANumDF;                                                  
         spill_margin;                                                        
      end;                                                                    
      define ANOVANumDF;                                                      
         header = "Num DF";                                                   
         format = best4.;                                                     
         glue = 2;                                                            
      end;                                                                    
      define ANOVADenDF;                                                      
         header = "Den DF";                                                   
         format = best4.;                                                     
         glue = 2;                                                            
      end;                                                                    
      define ANOVAFValue;                                                     
         header = "Value";                                                    
         glue = 2;                                                            
         parent = Common.ANOVA.FValue;                                        
      end;                                                                    
      define ANOVAProbF;                                                      
         header = "Pr &amp;gt; F(DDF)";                                              
         glue = 2;                                                            
         parent = Common.ANOVA.ProbF;                                         
      end;                                                                    
      define ANOVAProbFInf;                                                   
         header = "Pr &amp;gt; F(infty)";                                            
         glue = 2;                                                            
         parent = Common.ANOVA.ProbF;                                         
      end;                                                                    
      use_format_defaults;                                                    
   end;                                                                       
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 May 2017 10:15:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362453#M85625</guid>
      <dc:creator>MRuG</dc:creator>
      <dc:date>2017-05-29T10:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Changing 12E3 output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362456#M85626</link>
      <description>&lt;P&gt;It's not clear which part of the troublesome report matches which part of the template, but the results give a clue. &amp;nbsp;Where you are using the best4 format as part of the template specifications, try increasing that to best5. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 10:42:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362456#M85626</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-05-29T10:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Changing 12E3 output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362457#M85627</link>
      <description>&lt;P&gt;You probably need to to&amp;nbsp;expand the length of the format for those variable where you experience this.&amp;nbsp;The&amp;nbsp;scientific notation is used when SAS can't fit the full value.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 10:45:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362457#M85627</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-05-29T10:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Changing 12E3 output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362462#M85630</link>
      <description>Unfortunately it didn't help! Thanks though</description>
      <pubDate>Mon, 29 May 2017 10:59:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362462#M85630</guid>
      <dc:creator>MRuG</dc:creator>
      <dc:date>2017-05-29T10:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Changing 12E3 output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362463#M85631</link>
      <description>How do I do this exactly? Sorry I am still a newbie with SAS &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Mon, 29 May 2017 11:00:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362463#M85631</guid>
      <dc:creator>MRuG</dc:creator>
      <dc:date>2017-05-29T11:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Changing 12E3 output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362466#M85633</link>
      <description>&lt;P&gt;The first no in the format definition specifies the total display length:&lt;/P&gt;
&lt;P&gt;So, instead of 6.0, try 10.0 (the 0 can be ommitted if you specify a no prior to the dot).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 11:06:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362466#M85633</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-05-29T11:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Changing 12E3 output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362468#M85634</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/146192"&gt;@MRuG&lt;/a&gt;&amp;nbsp;wrote: &amp;nbsp;"&lt;SPAN&gt;my &lt;STRONG&gt;degrees of freedom&lt;/STRONG&gt; are shown as 12E3 instead of the actual numerical value".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Your proc template defines format for various variables. Can you point which of them relate to degree of freedom?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Suppose it is &lt;STRONG&gt;NumDF&lt;/STRONG&gt; then change the format from 6.0 into 9.3.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Check it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 11:09:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362468#M85634</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-05-29T11:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Changing 12E3 output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362476#M85637</link>
      <description>&lt;P&gt;It's actually the DF that I get in the "solution for fixed effects" table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added a&amp;nbsp;&lt;/P&gt;&lt;P&gt;define DF;&lt;BR /&gt;header = "DF";&lt;BR /&gt;format = 10.0; &amp;nbsp; &amp;nbsp; (also tried it with 9.3)&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but neither had an effect.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 11:38:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362476#M85637</guid>
      <dc:creator>MRuG</dc:creator>
      <dc:date>2017-05-29T11:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Changing 12E3 output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362478#M85639</link>
      <description>&lt;P&gt;12E3 ia actually 12*10**3 = 12,000.&lt;/P&gt;
&lt;P&gt;'12E3' holds 4 characters where 12,000 holds 6 characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you post few lines from the dataset used with the proc template.&lt;BR /&gt;maybe the variable name is not DF &amp;nbsp;and the default format is 4. ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post the full code or the full log of your run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 11:51:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362478#M85639</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-05-29T11:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Changing 12E3 output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362479#M85640</link>
      <description>&lt;P&gt;The data set consists of 12666 observations at level 1. We asked participants to report their behaviour during social interactions (multiple/day) for a period of 2 weeks. Specifically, we looked at the effect of drinking alcohol &amp;nbsp;on social behaviour.&lt;/P&gt;&lt;P&gt;In this example here, the effect of CALC (event-level drinking) on quarrelsome behaviour and how this relationship is influenced by Cheavy (between person-level drinking variable).&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc mixed data=in.finalALC METHOD=ML NOCLPRINT COVTEST ;
class id study;
model IMQURBEH = calc cheavy
calc*cheavy
/SOLUTION
DDFM=BETWITHIN htypE=1,3 ;  
RANDOM intercept cdrinkyn/type=un(1) sub=id ; 
repeated /type=ar(1) sub=id group=study; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The full code I used for the proc template is the following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
define table Stat.Mixed.FTests;                                            
      notes "F-tests table";                                                  
      column Effect Label Var NumVar Margins ByLevel AtVar DF NumDF DenDF ChiSq  
         FValue ProbChiSq OrdChiSq ProbF OrdF ANOVANumDF ANOVADenDF           
         ANOVAFValue ANOVAProbF ANOVAProbFinf;                                
      header anovafheader;                                                    
      define Effect;                                                          
         header = "Effect";                                                   
         style = RowHeader;                                                   
         id;                                                                  
      end;                                                                    
      define Label;                                                           
         header = "Label";                                                    
         id;                                                                  
      end;                                                                    
      define Var;                                                             
         id;                                                                  
         generic;                                                             
      end;                                                                    
      define NumVar;                                                          
         translate _val_=._ into "";                                          
         just = l;                                                            
         id;                                                                  
         generic;                                                             
      end;                                                                    
      define Margins;                                                         
         header = "Margins";                                                  
      end;                                                                    
      define ByLevel;                                                         
         header = "By Level";                                                 
      end;                                                                    
      define AtVar;                                                           
         format = 6.2;                                                        
         generic;                                                             
      end;                                                                    
      define NumDF;                                                           
         header = "Num DF";                                                   
         format = 10.0;                                                        
      end; 
define DF;
header = "DF";
format = 10.0;
end; 
      define DenDF;                                                           
         header = "Den DF";                                                   
         format = best8.;                                                     
      end;                                                                    
      define ChiSq;                                                           
         header = ";Chi-Square";                                              
         translate _val_=.I into "  Infty";                                   
         format = 7.2;                                                        
      end;                                                                    
      define FValue;                                                          
         parent = Common.ANOVA.FValue;                                        
      end;                                                                    
      define ProbChiSq;                                                       
         width = 12;                                                          
         parent = Common.ProbChiSq;                                           
      end;                                                                    
      define OrdChiSq;                                                        
         header = "Ord ChiSq";                                                
         format = 6.4;                                                        
      end;                                                                    
      define ProbF;                                                           
         parent = Common.ANOVA.ProbF;                                         
      end;                                                                    
      define OrdF;                                                            
         header = "Ord F";                                                    
         format = 6.4;                                                        
      end;                                                                    
      define anovafheader;                                                    
         text "ANOVA F";                                                      
         space = 0;                                                           
         expand = "-";                                                        
         end = ANOVAProbFInf;                                                 
         start = ANOVANumDF;                                                  
         spill_margin;                                                        
      end;                                                                    
      define ANOVANumDF;                                                      
         header = "Num DF";                                                   
         format = best5.;                                                     
         glue = 2;                                                            
      end;                                                                    
      define ANOVADenDF;                                                      
         header = "Den DF";                                                   
         format = best5.;                                                     
         glue = 2;                                                            
      end;                                                                    
      define ANOVAFValue;                                                     
         header = "Value";                                                    
         glue = 2;                                                            
         parent = Common.ANOVA.FValue;                                        
      end;                                                                    
      define ANOVAProbF;                                                      
         header = "Pr &amp;gt; F(DDF)";                                              
         glue = 2;                                                            
         parent = Common.ANOVA.ProbF;                                         
      end;                                                                    
      define ANOVAProbFInf;                                                   
         header = "Pr &amp;gt; F(infty)";                                            
         glue = 2;                                                            
         parent = Common.ANOVA.ProbF;                                         
      end;                                                                    
      use_format_defaults;                                                    
   end;                                                                       
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope that makes things clearer / was what you were asking for.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 12:09:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362479#M85640</guid>
      <dc:creator>MRuG</dc:creator>
      <dc:date>2017-05-29T12:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Changing 12E3 output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362488#M85643</link>
      <description>&lt;P&gt;I'm not familiar with proc mixed and proc template.&lt;/P&gt;
&lt;P&gt;I don't see the DF variable within the proc mixed. Is it a generated variable with this procedure?&lt;BR /&gt;I don't see, thouh there might be, connection between the two procedures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now that you have posted more code I hope someone else will be able to post a solution.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 12:55:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362488#M85643</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-05-29T12:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Changing 12E3 output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362489#M85644</link>
      <description>Thanks anyway for your ideas! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Mon, 29 May 2017 13:00:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362489#M85644</guid>
      <dc:creator>MRuG</dc:creator>
      <dc:date>2017-05-29T13:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Changing 12E3 output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362503#M85648</link>
      <description>&lt;P&gt;I have found a similar (reverse) query to yours.&lt;/P&gt;
&lt;P&gt;Compare proc mixed code.&lt;/P&gt;
&lt;P&gt;maybe you'll come to a solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Statistical-Procedures/Decimals-in-Degrees-of-freedom-proc-mixed/td-p/293412" target="_self"&gt;https://communities.sas.com/t5/SAS-Statistical-Procedures/Decimals-in-Degrees-of-freedom-proc-mixed/td-p/293412&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 14:07:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362503#M85648</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-05-29T14:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Changing 12E3 output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362543#M85660</link>
      <description>&lt;P&gt;Try running your code with the ODS TRACE ON; statement just before your PROC MIXED. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The log will show that the "Solution for Fixed Effects" uses the Stat.Mixed.SolutionF template. &amp;nbsp;You can use PROC TEMPLATE to look at the source for the Stat.Mixed.SolutionF template. &amp;nbsp;The parent is the Stat.Mixed.tTests template. &amp;nbsp;DF uses the best4. format in the Stat.Mixed.tTests template.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 17:01:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-12E3-output/m-p/362543#M85660</guid>
      <dc:creator>SuzanneDorinski</dc:creator>
      <dc:date>2017-05-29T17:01:41Z</dc:date>
    </item>
  </channel>
</rss>

