<?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 Getting p values out of proc autoreg in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Getting-p-values-out-of-proc-autoreg/m-p/142789#M37981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all-&lt;/P&gt;&lt;P&gt;So I have the fake sample set below with dates and then values for Field A and B.&lt;/P&gt;&lt;P&gt;A is clearly declining over time, B is not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know how to export out the values such as trendhat so that I can actually produce a graph in ODS later. &lt;/P&gt;&lt;P&gt;However, how can I actually export out the p value in this case (for month) to demonstrate that in this case, the "trend" is or is not actually statistically significant for time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to take this p value and then translate it into a legend into a graph. Everything else I know how to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lawrence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps Sorry for the crude input for time. I really forgot how to manually enter data into a dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA X;&lt;/P&gt;&lt;P&gt;INPUT @2 MONTH_CHAR $ A B;&lt;/P&gt;&lt;P&gt;MONTH=input(MONTH_CHAR,mmddyy10.);&lt;/P&gt;&lt;P&gt;DATALINES;&lt;/P&gt;&lt;P&gt;'01/01/12' 26 26&lt;/P&gt;&lt;P&gt;'02/01/12' 24 12&lt;/P&gt;&lt;P&gt;'03/01/12' 23 26&lt;/P&gt;&lt;P&gt;'04/01/12' 20 17 &lt;/P&gt;&lt;P&gt;'05/01/12' 21 25 &lt;/P&gt;&lt;P&gt;'06/01/12' 18 19 &lt;/P&gt;&lt;P&gt;'07/01/12' 16 28 &lt;/P&gt;&lt;P&gt;'08/01/12' 14 20 &lt;/P&gt;&lt;P&gt;'09/01/12' 13 18 &lt;/P&gt;&lt;P&gt;'10/01/12' 10 20 &lt;/P&gt;&lt;P&gt;'11/01/12' 11 14 &lt;/P&gt;&lt;P&gt;'12/01/12' 8 8 &lt;/P&gt;&lt;P&gt;'01/01/13' 6 20 &lt;/P&gt;&lt;P&gt;'02/01/13' 4 22&lt;/P&gt;&lt;P&gt;'03/01/13' 3 6 &lt;/P&gt;&lt;P&gt;'04/01/13' 2 25 &lt;/P&gt;&lt;P&gt;'05/01/13' 6 28&lt;/P&gt;&lt;P&gt;'06/01/13' 1 22&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc autoreg data=X ;&lt;/P&gt;&lt;P&gt;model A=month /nlag=2 method=ml;&lt;/P&gt;&lt;P&gt;output out=X_A&amp;nbsp; pm=trendhat ;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc autoreg data=X ;&lt;/P&gt;&lt;P&gt;model B=month /nlag=2 method=ml;&lt;/P&gt;&lt;P&gt;output out=X_B&amp;nbsp; pm=trendhat ;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Nov 2013 23:55:49 GMT</pubDate>
    <dc:creator>LB</dc:creator>
    <dc:date>2013-11-13T23:55:49Z</dc:date>
    <item>
      <title>Getting p values out of proc autoreg</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-p-values-out-of-proc-autoreg/m-p/142789#M37981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all-&lt;/P&gt;&lt;P&gt;So I have the fake sample set below with dates and then values for Field A and B.&lt;/P&gt;&lt;P&gt;A is clearly declining over time, B is not. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know how to export out the values such as trendhat so that I can actually produce a graph in ODS later. &lt;/P&gt;&lt;P&gt;However, how can I actually export out the p value in this case (for month) to demonstrate that in this case, the "trend" is or is not actually statistically significant for time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to take this p value and then translate it into a legend into a graph. Everything else I know how to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lawrence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps Sorry for the crude input for time. I really forgot how to manually enter data into a dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA X;&lt;/P&gt;&lt;P&gt;INPUT @2 MONTH_CHAR $ A B;&lt;/P&gt;&lt;P&gt;MONTH=input(MONTH_CHAR,mmddyy10.);&lt;/P&gt;&lt;P&gt;DATALINES;&lt;/P&gt;&lt;P&gt;'01/01/12' 26 26&lt;/P&gt;&lt;P&gt;'02/01/12' 24 12&lt;/P&gt;&lt;P&gt;'03/01/12' 23 26&lt;/P&gt;&lt;P&gt;'04/01/12' 20 17 &lt;/P&gt;&lt;P&gt;'05/01/12' 21 25 &lt;/P&gt;&lt;P&gt;'06/01/12' 18 19 &lt;/P&gt;&lt;P&gt;'07/01/12' 16 28 &lt;/P&gt;&lt;P&gt;'08/01/12' 14 20 &lt;/P&gt;&lt;P&gt;'09/01/12' 13 18 &lt;/P&gt;&lt;P&gt;'10/01/12' 10 20 &lt;/P&gt;&lt;P&gt;'11/01/12' 11 14 &lt;/P&gt;&lt;P&gt;'12/01/12' 8 8 &lt;/P&gt;&lt;P&gt;'01/01/13' 6 20 &lt;/P&gt;&lt;P&gt;'02/01/13' 4 22&lt;/P&gt;&lt;P&gt;'03/01/13' 3 6 &lt;/P&gt;&lt;P&gt;'04/01/13' 2 25 &lt;/P&gt;&lt;P&gt;'05/01/13' 6 28&lt;/P&gt;&lt;P&gt;'06/01/13' 1 22&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc autoreg data=X ;&lt;/P&gt;&lt;P&gt;model A=month /nlag=2 method=ml;&lt;/P&gt;&lt;P&gt;output out=X_A&amp;nbsp; pm=trendhat ;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc autoreg data=X ;&lt;/P&gt;&lt;P&gt;model B=month /nlag=2 method=ml;&lt;/P&gt;&lt;P&gt;output out=X_B&amp;nbsp; pm=trendhat ;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2013 23:55:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-p-values-out-of-proc-autoreg/m-p/142789#M37981</guid>
      <dc:creator>LB</dc:creator>
      <dc:date>2013-11-13T23:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Getting p values out of proc autoreg</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-p-values-out-of-proc-autoreg/m-p/142790#M37982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use ODS Trace to determine the table (Check the log) and then use ods table mytablename=ptable before proc to store table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods trace on;&lt;/P&gt;&lt;P&gt;ods table tablename=my_Table;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc autoreg data=X ;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;model A=month /nlag=2 method=ml;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;output out=X_A&amp;nbsp; pm=trendhat ;run;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;ods trace off;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc print data=my_table;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 01:02:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-p-values-out-of-proc-autoreg/m-p/142790#M37982</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-11-14T01:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Getting p values out of proc autoreg</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-p-values-out-of-proc-autoreg/m-p/142791#M37983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reeza;&lt;/P&gt;&lt;P&gt;Very helpful-&lt;/P&gt;&lt;P&gt;So the table I want is&lt;/P&gt;&lt;P&gt;ParameterEstimatesGivenAR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I try to set the parameter ods table mytablename=ParameterEstimatesGivenAR-&lt;/P&gt;&lt;P&gt;It returns an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I just use ods table ParameterEstimatesGivenAR&amp;nbsp; it works finr but I cannot seem to define the table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lawrence&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 17:20:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-p-values-out-of-proc-autoreg/m-p/142791#M37983</guid>
      <dc:creator>LB</dc:creator>
      <dc:date>2013-11-14T17:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Getting p values out of proc autoreg</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-p-values-out-of-proc-autoreg/m-p/142792#M37984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You did it backwards:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods table ParameterEstimatesGivenAR=Mytablename;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 17:27:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-p-values-out-of-proc-autoreg/m-p/142792#M37984</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-11-14T17:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting p values out of proc autoreg</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-p-values-out-of-proc-autoreg/m-p/142793#M37985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reeza;&lt;/P&gt;&lt;P&gt;Gotcha! Not enough coffee yet in the system!&lt;/P&gt;&lt;P&gt;Many Thanks this is great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lawrence&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 17:31:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-p-values-out-of-proc-autoreg/m-p/142793#M37985</guid>
      <dc:creator>LB</dc:creator>
      <dc:date>2013-11-14T17:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting p values out of proc autoreg</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-p-values-out-of-proc-autoreg/m-p/142794#M37986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Reeza;&lt;/P&gt;&lt;P&gt;OK One more question-&lt;/P&gt;&lt;P&gt;In order to use this I need to leave the print option on-This causes all the parameters to be output into my report which I don't want- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attempted to redirect the log to bypass this but that does not work..Is there a way to have my cake and eat it too&lt;/P&gt;&lt;P&gt;(i.e. get the parameters table but suppress the output from the proc autoreg)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lawrence&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 18:33:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-p-values-out-of-proc-autoreg/m-p/142794#M37986</guid>
      <dc:creator>LB</dc:creator>
      <dc:date>2013-11-14T18:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Getting p values out of proc autoreg</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-p-values-out-of-proc-autoreg/m-p/142795#M37987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Turn of ods listings or whatever your destination is?&lt;/P&gt;&lt;P&gt;ODS Listing Close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODS LISTING;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or ODS SELECT NONE before the proc? I think that still allows you to capture the table, but not 100% sure.&lt;/P&gt;&lt;P&gt;ODS SELECT ALL after the proc to reset. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 18:55:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-p-values-out-of-proc-autoreg/m-p/142795#M37987</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-11-14T18:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Getting p values out of proc autoreg</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-p-values-out-of-proc-autoreg/m-p/142796#M37988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try that. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lawrence&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 21:00:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-p-values-out-of-proc-autoreg/m-p/142796#M37988</guid>
      <dc:creator>LB</dc:creator>
      <dc:date>2013-11-14T21:00:41Z</dc:date>
    </item>
  </channel>
</rss>

