<?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 to include only first boxplot (SAS Studio) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-only-first-boxplot-SAS-Studio/m-p/781611#M38400</link>
    <description>You got us started here with a very good set of code.</description>
    <pubDate>Mon, 22 Nov 2021 01:06:29 GMT</pubDate>
    <dc:creator>MaryA_Marion</dc:creator>
    <dc:date>2021-11-22T01:06:29Z</dc:date>
    <item>
      <title>how to include only first boxplot (SAS Studio)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-only-first-boxplot-SAS-Studio/m-p/781463#M38379</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc glm data=&amp;amp;data;&lt;BR /&gt;class &amp;amp;indvar;&lt;BR /&gt;model &amp;amp;depvar=&amp;amp;indvar;&lt;BR /&gt;means &amp;amp;indvar / hovtest=bf;&lt;BR /&gt;means &amp;amp;indvar / hovtest=ob;&lt;BR /&gt;means &amp;amp;indvar / hovtest=levene;&lt;BR /&gt;means &amp;amp;indvar / hovtest=bartlett;&lt;BR /&gt;means &amp;amp;indvar / welch;&lt;BR /&gt;ods exclude nobs classlevels OverallAnova FitStatistics modelANOVA means boxplot;&lt;/PRE&gt;
&lt;P&gt;In the code above I want to keep only first boxplot. I am having a syntax problem. Can you help?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Nov 2021 14:34:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-only-first-boxplot-SAS-Studio/m-p/781463#M38379</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2021-11-20T14:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to include only first boxplot (SAS Studio)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-only-first-boxplot-SAS-Studio/m-p/781473#M38380</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is your data set so big that you cannot afford to do 2 PROC GLM's??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can do something like the below :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%LET depvar=Sales;
%LET indvar=Product;

proc glm data=sashelp.shoes;
class &amp;amp;indvar;
model &amp;amp;depvar=&amp;amp;indvar;
means &amp;amp;indvar / hovtest=bf;
ods exclude nobs classlevels OverallAnova FitStatistics modelANOVA means;
run;

proc glm data=sashelp.shoes;
class &amp;amp;indvar;
model &amp;amp;depvar=&amp;amp;indvar;
means &amp;amp;indvar / hovtest=ob;
means &amp;amp;indvar / hovtest=levene;
means &amp;amp;indvar / hovtest=bartlett;
means &amp;amp;indvar / welch;
ods exclude nobs classlevels OverallAnova FitStatistics modelANOVA means boxplot;
run;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sat, 20 Nov 2021 16:47:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-only-first-boxplot-SAS-Studio/m-p/781473#M38380</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-11-20T16:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to include only first boxplot (SAS Studio)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-only-first-boxplot-SAS-Studio/m-p/781511#M38384</link>
      <description>&lt;P&gt;I am preparing for big data. So yes is my answer. Someone helped me with a similar problem and I have lost our communications. I will keep looking for it. I have another&amp;nbsp; similar question. How do I save only a specified number of rows of output. See attachment. This is a table from proc mixed labelled lsmeans. Thank you for your reply.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Nov 2021 05:12:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-only-first-boxplot-SAS-Studio/m-p/781511#M38384</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2021-11-21T05:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to include only first boxplot (SAS Studio)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-only-first-boxplot-SAS-Studio/m-p/781520#M38385</link>
      <description>&lt;P&gt;ODS TRACE ON is the key here.&lt;/P&gt;
&lt;P&gt;First, run the procedure without using the ODS EXCLUDE statement. The log will show the namves for all the tables and graphs that are produced. Find the one that you want, which I assume is the ANOVA boxplot, which will look something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output Added:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Name: BoxPlot&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Label: Box Plot&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Template: Stat.GLM.Graphics.FitBoxPlot&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Path: GLM.ANOVA.&lt;EM&gt;&amp;lt;NameOfDepVar&amp;gt;&lt;/EM&gt;.BoxPlot&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-------------&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;You can then use ODS SELECT to select only that graph, as shown in the following example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let data = sashelp.cars;
%let depvar = mpg_city;
%let indvar = origin;
ods trace on;
proc glm data=&amp;amp;data;
class &amp;amp;indvar;
model &amp;amp;depvar=&amp;amp;indvar;
means &amp;amp;indvar / hovtest=bf;
means &amp;amp;indvar / hovtest=ob;
means &amp;amp;indvar / hovtest=levene;
means &amp;amp;indvar / hovtest=bartlett;
means &amp;amp;indvar / welch;
ods exclude nobs classlevels OverallAnova FitStatistics modelANOVA means boxplot;
ods select GLM.ANOVA.&amp;amp;depVar..BoxPlot;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 21 Nov 2021 22:52:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-only-first-boxplot-SAS-Studio/m-p/781520#M38385</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-11-21T22:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to include only first boxplot (SAS Studio)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-only-first-boxplot-SAS-Studio/m-p/781556#M38388</link>
      <description>&lt;P&gt;The following code does not create the boxplot. This is the direction I am going in for the solution.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;ODS TRACE ON is the key here.&lt;/P&gt;
&lt;P&gt;First, run the procedure without using the ODS EXCLUDE statement. The log will show the namves for all the tables and graphs that are produced. Find the one that you want, which I assume is the ANOVA boxplot, which will look something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output Added:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-------------&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Name: BoxPlot&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Label: Box Plot&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Template: Stat.GLM.Graphics.FitBoxPlot&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Path: GLM.ANOVA.&lt;EM&gt;&amp;lt;NameOfDepVar&amp;gt;&lt;/EM&gt;.BoxPlot&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-------------&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;You can then use ODS SELECT to select only that graph, as shown in the following example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let data = sashelp.cars;
%let depvar = mpg_city;
%let indvar = origin;
ods trace on;
proc glm data=&amp;amp;data;
class &amp;amp;indvar;
model &amp;amp;depvar=&amp;amp;indvar;
means &amp;amp;indvar / hovtest=bf;
means &amp;amp;indvar / hovtest=ob;
means &amp;amp;indvar / hovtest=levene;
means &amp;amp;indvar / hovtest=bartlett;
means &amp;amp;indvar / welch;
ods exclude nobs classlevels OverallAnova FitStatistics modelANOVA means boxplot;
ods select GLM.ANOVA.&amp;amp;depVar.BoxPlot;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The following is not working:&lt;/P&gt;
&lt;PRE&gt;%let data = sashelp.cars;
%let depvar = mpg_city;
%let indvar = origin;
ods trace on;
proc glm data=&amp;amp;data;
class &amp;amp;indvar;
model &amp;amp;depvar=&amp;amp;indvar;
means &amp;amp;indvar / hovtest=bf;
means &amp;amp;indvar / hovtest=ob;
means &amp;amp;indvar / hovtest=levene;
means &amp;amp;indvar / hovtest=bartlett;
means &amp;amp;indvar / welch;
ods select GLM.ANOVA.&amp;amp;depVar.BoxPlot where = (_path_ ?&amp;nbsp; 'Step1');
run; quit;

Log:

WARNING: Output 'where=(_path_ contains 'Step1')' was not created.  Make sure that the output object name, label, or path is spelled correctly.  
          Also, verify that the appropriate procedure options are used to produce the requested output object.  For example, verify that the NOPRINT 
          option is not used.
 WARNING: Output 'GLM.ANOVA.mpg_cityBoxPlot' was not created.  Make sure that the output object name, label, or path is spelled correctly.  Also, 
          verify that the appropriate procedure options are used to produce the requested output object.  For example, verify that the NOPRINT option 
          is not used.
&lt;/PRE&gt;</description>
      <pubDate>Sun, 21 Nov 2021 17:08:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-only-first-boxplot-SAS-Studio/m-p/781556#M38388</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2021-11-21T17:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to include only first boxplot (SAS Studio)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-only-first-boxplot-SAS-Studio/m-p/781600#M38397</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your ODS SELECT statement is wrong.&lt;/P&gt;
&lt;P&gt;It should be :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods select GLM.ANOVA.&amp;amp;depVar..BoxPlot where = (_path_ ?  'Step1');
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thus ... two dots behind &amp;amp;depvar&lt;/P&gt;
&lt;P&gt;, one dot as a delimiter for the macro variable (resolution) and one dot as a separator with the string 'BoxPlot'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sun, 21 Nov 2021 22:49:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-only-first-boxplot-SAS-Studio/m-p/781600#M38397</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2021-11-21T22:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to include only first boxplot (SAS Studio)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-only-first-boxplot-SAS-Studio/m-p/781602#M38398</link>
      <description>&lt;P&gt;For anyone wondering what the OP is doing with the WHERE clause, see the article, &lt;A href="https://blogs.sas.com/content/iml/2018/11/19/select-ods-tables-wildcards-regular-expressions-sas.html" target="_self"&gt;"Select ODS tables by using wildcards and regular expressions in SAS."&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Nov 2021 22:54:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-only-first-boxplot-SAS-Studio/m-p/781602#M38398</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-11-21T22:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to include only first boxplot (SAS Studio)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-only-first-boxplot-SAS-Studio/m-p/781608#M38399</link>
      <description>&lt;P&gt;The two dots before boxplot are important.&lt;/P&gt;
&lt;P&gt;I want to completely stop outputting any of the means tables. I am doing the following:&lt;/P&gt;
&lt;PRE&gt;%let data = sashelp.cars;
%let depvar = mpg_city;
%let indvar = origin;
ods trace on;
proc glm data=&amp;amp;data;
class &amp;amp;indvar;
model &amp;amp;depvar=&amp;amp;indvar;
means &amp;amp;indvar / hovtest=bf;
means &amp;amp;indvar / hovtest=ob;
means &amp;amp;indvar / hovtest=levene;
means &amp;amp;indvar / hovtest=bartlett;
means &amp;amp;indvar / welch;
ods select GLM.Means.Origin.Means HOVFTest GLM.ANOVA.&amp;amp;depVar..BoxPlot;
run; quit;
&lt;/PRE&gt;
&lt;P&gt;Results:&lt;BR /&gt;GLM.Means.Origin.Means does not stop displaying Means table.&lt;BR /&gt;I only want the ANOVAS FOR THE Tests of Homogeneity to print out &lt;BR /&gt;+ one boxplot which is outputting successfully now. How to stop the output of the means plots? Thanks.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 00:03:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-only-first-boxplot-SAS-Studio/m-p/781608#M38399</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2021-11-22T00:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to include only first boxplot (SAS Studio)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-only-first-boxplot-SAS-Studio/m-p/781611#M38400</link>
      <description>You got us started here with a very good set of code.</description>
      <pubDate>Mon, 22 Nov 2021 01:06:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-only-first-boxplot-SAS-Studio/m-p/781611#M38400</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2021-11-22T01:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to include only first boxplot (SAS Studio)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-only-first-boxplot-SAS-Studio/m-p/781612#M38401</link>
      <description>That statement is not working for me. I am not sure why. I am checking the ODS users guide.</description>
      <pubDate>Mon, 22 Nov 2021 01:07:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-only-first-boxplot-SAS-Studio/m-p/781612#M38401</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2021-11-22T01:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to include only first boxplot (SAS Studio)  Successful ods statement summary</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-only-first-boxplot-SAS-Studio/m-p/781616#M38402</link>
      <description>&lt;P&gt;Well I have tried various configurations and this is what I have come up with (all run successfully)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods exclude nobs classlevels OverallAnova FitStatistics modelANOVA means boxplot; *anovas only;&lt;BR /&gt;ods select GLM.ANOVA.&amp;amp;depVar..BoxPlot where = (_path_ ?  'Step1');                *boxplot only;&lt;BR /&gt;ods select GLM.ANOVA.&amp;amp;depVar..BoxPlot where = (_path_ ?  'Step1') HOVfTest;       *boxplot+anova;&lt;/PRE&gt;
&lt;P&gt;Its been a great discussion. .. MM&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 01:26:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/how-to-include-only-first-boxplot-SAS-Studio/m-p/781616#M38402</guid>
      <dc:creator>MaryA_Marion</dc:creator>
      <dc:date>2021-11-22T01:26:40Z</dc:date>
    </item>
  </channel>
</rss>

