<?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: Summary of ANOVA summary - put p value and R squared in the same table as a result. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Summary-of-ANOVA-summary-put-p-value-and-R-squared-in-the-same/m-p/928355#M365247</link>
    <description>&lt;P&gt;Awesome!!1 YOu nailed it!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS OUTPUT was the answer i was expecting to solve the question!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Congratulations and thanks!!!&lt;/P&gt;</description>
    <pubDate>Tue, 14 May 2024 17:42:35 GMT</pubDate>
    <dc:creator>jonatan_velarde</dc:creator>
    <dc:date>2024-05-14T17:42:35Z</dc:date>
    <item>
      <title>Summary of ANOVA summary - put p value and R squared in the same table as a result.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Summary-of-ANOVA-summary-put-p-value-and-R-squared-in-the-same/m-p/928294#M365228</link>
      <description>&lt;P&gt;Hi guys:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have&amp;nbsp; many ANOVAs&amp;nbsp; to be run and each of them has its respective p value and R squares.&lt;/P&gt;
&lt;P&gt;All ANOVAs have the same amount of observations,&amp;nbsp; this means thar ERROR I and III could be taken to make part of the table i need to get&lt;/P&gt;
&lt;P&gt;There we go, we have 3 ANOVA, everyone is a different answer on each environment:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;/P&gt;
&lt;P&gt;input&amp;nbsp;order environment country$ observation;&lt;/P&gt;
&lt;P&gt;cards;&lt;BR /&gt;1 1 a 11.7062885827733&lt;BR /&gt;2 1 a 12.5326186073177&lt;BR /&gt;3 1 a 12.1121866473611&lt;BR /&gt;4 1 a 10.6770770786762&lt;BR /&gt;5 1 b 12.7272303160372&lt;BR /&gt;6 1 b 12.5069020572854&lt;BR /&gt;7 1 b 10.3801953337563&lt;BR /&gt;8 1 b 11.3699075949466&lt;BR /&gt;9 1 b 14.7913170706891&lt;BR /&gt;10 2 c 11.7957215280586&lt;BR /&gt;11 2 c 12.7967928055036&lt;BR /&gt;12 2 c 12.3156597291194&lt;BR /&gt;13 2 c 11.4903775240095&lt;BR /&gt;14 2 c 12.2868489869184&lt;BR /&gt;15 2 d 12.0244581514243&lt;BR /&gt;16 2 d 11.2738963155379&lt;BR /&gt;17 2 d 11.2017213686765&lt;BR /&gt;18 2 d 12.6084387827896&lt;BR /&gt;19 2 d 13.2818434423956&lt;BR /&gt;20 3 e 12.7756560519949&lt;BR /&gt;21 3 e 11.0392289428102&lt;BR /&gt;22 3 e 12.0000826320338&lt;BR /&gt;23 3 e 11.139270842614&lt;BR /&gt;24 3 e 13.5663343765743&lt;BR /&gt;25 3 f 11.7650627921355&lt;BR /&gt;26 3 f 12.6102709811389&lt;BR /&gt;27 3 f 11.5515913330262&lt;BR /&gt;28 3 f 14.0639297127507&lt;BR /&gt;29 3 f 12.3158309468017&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc glm data = have;&lt;/P&gt;
&lt;P&gt;where environment = 1;&lt;BR /&gt;class country order;&lt;BR /&gt;model observation = country order;&lt;BR /&gt;random order;&lt;BR /&gt;means country / duncan tukey lines;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc glm data = have;&lt;/P&gt;
&lt;P&gt;where environment = 2;&lt;BR /&gt;class country order;&lt;BR /&gt;model observation = country order;&lt;BR /&gt;random order;&lt;BR /&gt;means country / duncan tukey lines;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc glm data = have;&lt;/P&gt;
&lt;P&gt;where environment = 3;&lt;BR /&gt;class country order;&lt;BR /&gt;model observation = country order;&lt;BR /&gt;random order;&lt;BR /&gt;means country / duncan tukey lines;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;now, we have to mount a new table containing:&lt;/P&gt;
&lt;TABLE border="0" cellspacing="0"&gt;&lt;COLGROUP width="88"&gt;&lt;/COLGROUP&gt; &lt;COLGROUP width="66"&gt;&lt;/COLGROUP&gt; &lt;COLGROUP width="97"&gt;&lt;/COLGROUP&gt; &lt;COLGROUP width="99"&gt;&lt;/COLGROUP&gt; &lt;COLGROUP width="125"&gt;&lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD height="17" align="center"&gt;Environment&lt;/TD&gt;
&lt;TD align="center"&gt;rsquared&lt;/TD&gt;
&lt;TD align="center"&gt;P value Model&lt;/TD&gt;
&lt;TD align="center"&gt;P value Error I&lt;/TD&gt;
&lt;TD align="center"&gt;p value ERROR III&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="17" align="center"&gt;1&lt;/TD&gt;
&lt;TD align="center"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD align="center"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD align="center"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD align="center"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="17" align="center"&gt;2&lt;/TD&gt;
&lt;TD align="center"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD align="center"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD align="center"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD align="center"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="17" align="center"&gt;3&lt;/TD&gt;
&lt;TD align="center"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD align="center"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD align="center"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD align="center"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde" size="7" color="#FF0000"&gt;IMPORTANT INFORMATION IN BIG CAPS&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial black,avant garde" size="7" color="#FF0000"&gt;DATA PRESENTED HERE IS ENOUGH TO ACCOMPLISH THE PUZZLE, NO NEED TO GET MORE DETAILS.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bets regards, always&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 14:58:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Summary-of-ANOVA-summary-put-p-value-and-R-squared-in-the-same/m-p/928294#M365228</guid>
      <dc:creator>jonatan_velarde</dc:creator>
      <dc:date>2024-05-14T14:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Summary of ANOVA summary - put p value and R squared in the same table as a result.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Summary-of-ANOVA-summary-put-p-value-and-R-squared-in-the-same/m-p/928298#M365229</link>
      <description>&lt;P&gt;Since I can't ask questions ... I can't give you an answer nor can I even help you move towards an answer. Why are questions not allowed? I'd like to help...&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 15:12:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Summary-of-ANOVA-summary-put-p-value-and-R-squared-in-the-same/m-p/928298#M365229</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-05-14T15:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Summary of ANOVA summary - put p value and R squared in the same table as a result.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Summary-of-ANOVA-summary-put-p-value-and-R-squared-in-the-same/m-p/928303#M365233</link>
      <description>&lt;P&gt;Anything that appears in the results from these procedures should be available using ODS OUTPUT to place the values from one or more objects into data sets. Once you have the data sets you combine them using data step code most likely.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However since your data step as posted does not run correctly as posted we have no data set to test anything.&lt;/P&gt;
&lt;P&gt;Sort your data BY Environment;&lt;/P&gt;
&lt;P&gt;Use BY Environment in the Proc GLM to reduce the number of data sets you are creating.&lt;/P&gt;
&lt;PRE&gt;proc sort data=have;
by environment;
run;


proc glm data = have;
ods output  overallanova=work.pvalues
            fitstatistics=work.rsquare
;
by environment;

class country order;
model observation = country order;
random order;
means country / duncan tukey lines;
run;
quit;
&lt;/PRE&gt;
&lt;P&gt;We&amp;nbsp; can't show you code to combine these two tables to have Rsquare and Pvalue in same data set because you have said we can't ask you what the *bleep" you output data set is supposed to look like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We can't ask "What P-value" where none of your groups of environment have enough observations and generate warnings of&lt;/P&gt;
&lt;PRE&gt;WARNING: Mean separation procedures will not be carried out due to zero degrees of freedom for
         the specified error source.
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 15:39:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Summary-of-ANOVA-summary-put-p-value-and-R-squared-in-the-same/m-p/928303#M365233</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-05-14T15:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Summary of ANOVA summary - put p value and R squared in the same table as a result.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Summary-of-ANOVA-summary-put-p-value-and-R-squared-in-the-same/m-p/928308#M365236</link>
      <description>Thanks for the feedback, &lt;BR /&gt;Assuming that p values could be obtain, using other dataset.&lt;BR /&gt;&lt;BR /&gt;How could it be done?&lt;BR /&gt;&lt;BR /&gt;Thanks one more time</description>
      <pubDate>Tue, 14 May 2024 15:57:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Summary-of-ANOVA-summary-put-p-value-and-R-squared-in-the-same/m-p/928308#M365236</guid>
      <dc:creator>jonatan_velarde</dc:creator>
      <dc:date>2024-05-14T15:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Summary of ANOVA summary - put p value and R squared in the same table as a result.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Summary-of-ANOVA-summary-put-p-value-and-R-squared-in-the-same/m-p/928334#M365242</link>
      <description>&lt;P&gt;Run the example code with your data.&lt;/P&gt;
&lt;P&gt;Check the results in the datasets Work.Rsquare and Work.Pvalue.&lt;/P&gt;
&lt;P&gt;If you mean by a different procedure then the approach is likely the same but the details may differ as not all procedures create the same ODS output objects. Use ODS TRACE on/off; around procedure code to see the names of the objects created that you can use to create data sets with ODS OUTPUT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/50712"&gt;@jonatan_velarde&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thanks for the feedback, &lt;BR /&gt;Assuming that p values could be obtain, using other dataset.&lt;BR /&gt;&lt;BR /&gt;How could it be done?&lt;BR /&gt;&lt;BR /&gt;Thanks one more time&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 16:31:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Summary-of-ANOVA-summary-put-p-value-and-R-squared-in-the-same/m-p/928334#M365242</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-05-14T16:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Summary of ANOVA summary - put p value and R squared in the same table as a result.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Summary-of-ANOVA-summary-put-p-value-and-R-squared-in-the-same/m-p/928355#M365247</link>
      <description>&lt;P&gt;Awesome!!1 YOu nailed it!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS OUTPUT was the answer i was expecting to solve the question!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Congratulations and thanks!!!&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 17:42:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Summary-of-ANOVA-summary-put-p-value-and-R-squared-in-the-same/m-p/928355#M365247</guid>
      <dc:creator>jonatan_velarde</dc:creator>
      <dc:date>2024-05-14T17:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Summary of ANOVA summary - put p value and R squared in the same table as a result.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Summary-of-ANOVA-summary-put-p-value-and-R-squared-in-the-same/m-p/928357#M365248</link>
      <description>Since white is white, and black is black,  there is not any more questions to argue about white and black, since you are not blind obviously. Thanks anyways for your OBVIOUS contribution&lt;BR /&gt;</description>
      <pubDate>Tue, 14 May 2024 17:44:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Summary-of-ANOVA-summary-put-p-value-and-R-squared-in-the-same/m-p/928357#M365248</guid>
      <dc:creator>jonatan_velarde</dc:creator>
      <dc:date>2024-05-14T17:44:09Z</dc:date>
    </item>
  </channel>
</rss>

