<?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: How does SAS create abbreviated ANOVA table labels? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-create-abbreviated-ANOVA-table-labels/m-p/541523#M149522</link>
    <description>&lt;P&gt;So the problem is in the report layouts and not GLM?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could run GLM with NAMELEN=200 so you can unambiguously determine what GLM is doing, and then do the truncation yourself before the report, it's all under your control.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Mar 2019 18:25:32 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-03-08T18:25:32Z</dc:date>
    <item>
      <title>How does SAS create abbreviated ANOVA table labels?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-create-abbreviated-ANOVA-table-labels/m-p/541506#M149514</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am writing a macro to create customized reports by combining output from Proc GLM ODS tables (ParameterEstimates and ModelANOVA). The report needs to accommodate not only varying numbers of main effects, but also interactions of varying orders.&amp;nbsp; Processing is conditional based on effect labels for each model term, which are extracted from the ODS datasets.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I realize that the Proc GLM option NAMELEN= can be used to specify the length of effect names in tables and output datasets (default=20); however, in no SAS manuals, online FAQs, or other documentation have I found a description of the algorithm used by SAS to abbreviate variable names into effect labels of the specified length.&amp;nbsp; For main effect terms, the effect labels appear to be a simple truncation of the variable name if it exceeds the specified length.&amp;nbsp; &amp;nbsp;For interactions, though,&amp;nbsp;effect labels do not appear to be simple, equal truncations of the constituent variable names; but it&amp;nbsp;is not obvious what algorithm is being using to abbreviate the constituent variable names, joined by '*'s, into effect labels.&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This seems like such a simple problem that I must be overlooking something obvious.&amp;nbsp; Any thoughts or insights would be greatly appreciated!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~ Richard&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 18:02:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-create-abbreviated-ANOVA-table-labels/m-p/541506#M149514</guid>
      <dc:creator>rafaldow</dc:creator>
      <dc:date>2019-03-08T18:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: How does SAS create abbreviated ANOVA table labels?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-create-abbreviated-ANOVA-table-labels/m-p/541508#M149516</link>
      <description>&lt;P&gt;I don't know the answer to your question. But if you&amp;nbsp; set NAMELEN=200, and even in the case where you have variables with 32 character names, you can accomodate 5-way interactions before the truncation happens, that ought to suffice for most situations.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 18:06:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-create-abbreviated-ANOVA-table-labels/m-p/541508#M149516</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-03-08T18:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: How does SAS create abbreviated ANOVA table labels?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-create-abbreviated-ANOVA-table-labels/m-p/541515#M149519</link>
      <description>Yes... Thank you, Paige. I realized that and setting the length to the maximum value is the interim solution I am using. It is not viable as a general solution, though, because the report layouts do not support very long effect names without incomprehensible wrapping occurring. For formatting purposes, the abbreviated effect names have substantial advantages, although I do have flexibility to adjust lengths up to about 40 or 50 characters.</description>
      <pubDate>Fri, 08 Mar 2019 18:16:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-create-abbreviated-ANOVA-table-labels/m-p/541515#M149519</guid>
      <dc:creator>rafaldow</dc:creator>
      <dc:date>2019-03-08T18:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: How does SAS create abbreviated ANOVA table labels?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-create-abbreviated-ANOVA-table-labels/m-p/541523#M149522</link>
      <description>&lt;P&gt;So the problem is in the report layouts and not GLM?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could run GLM with NAMELEN=200 so you can unambiguously determine what GLM is doing, and then do the truncation yourself before the report, it's all under your control.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 18:25:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-create-abbreviated-ANOVA-table-labels/m-p/541523#M149522</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-03-08T18:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: How does SAS create abbreviated ANOVA table labels?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-create-abbreviated-ANOVA-table-labels/m-p/541560#M149537</link>
      <description>Thanks so much for your help!&lt;BR /&gt;&lt;BR /&gt;The report layout is a limiting factor, but SAS's abbreviation algorithm that generates effect labels usually produces comprehensible abbreviations, so I am trying to take advantage of it.&lt;BR /&gt;&lt;BR /&gt;The macro initially generates a set of verbose effect labels based on full variable names expressed in the GLM model statement, along with positioning codes that describe where in the report they should be placed. It tries to then emulate SAS's abbreviated effect labels to match with the abbreviated effect labels in the SAS ODS output datasets in order to extract the associated values (parameter estimates, SEs, test statistics, pvals). The abbreviated effect labels and an extensively reformatted set of statistical values are then added to the body of the report in appropriate places (designated by the positioning codes). A comprehensive list of verbose effect descriptions and abbreviated effect names are added at the end of the report, but the abbreviated effect names are still needed in the body of the report.&lt;BR /&gt;&lt;BR /&gt;Also, it may not have been clear, but dependent and predictor variables for the Proc GLM Class and Model statements cannot be predicted in advance. They are input as part of the macro call.&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Mar 2019 19:52:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-create-abbreviated-ANOVA-table-labels/m-p/541560#M149537</guid>
      <dc:creator>rafaldow</dc:creator>
      <dc:date>2019-03-08T19:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: How does SAS create abbreviated ANOVA table labels?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-create-abbreviated-ANOVA-table-labels/m-p/541609#M149558</link>
      <description>&lt;P&gt;You need to provide more information to get help for us to understand why this is an issue. Sample code illustrating the issue would likely help here.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 21:06:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-create-abbreviated-ANOVA-table-labels/m-p/541609#M149558</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-03-08T21:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: How does SAS create abbreviated ANOVA table labels?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-create-abbreviated-ANOVA-table-labels/m-p/541678#M149594</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/33264"&gt;@rafaldow&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The macro initially generates a set of verbose effect labels based on full variable names expressed in the GLM model statement, along with positioning codes that describe where in the report they should be placed. It tries to then emulate SAS's abbreviated effect labels to match with the abbreviated effect labels in the SAS ODS output datasets in order to extract the associated values (parameter estimates, SEs, test statistics, pvals). The abbreviated effect labels and an extensively reformatted set of statistical values are then added to the body of the report in appropriate places (designated by the positioning codes). A comprehensive list of verbose effect descriptions and abbreviated effect names are added at the end of the report, but the abbreviated effect names are still needed in the body of the report.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So, given the above, I still really have no idea what the problem is that you want to solve. It seems to keep changing. I agree with &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; , you need to show us sample code, plus you need to show us the output from GLM you are working with, and you need to show us what you want as a final table.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 13:08:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-does-SAS-create-abbreviated-ANOVA-table-labels/m-p/541678#M149594</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-03-10T13:08:47Z</dc:date>
    </item>
  </channel>
</rss>

