<?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 store p-values in a data set in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/store-p-values-in-a-data-set/m-p/27540#M1036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Capture them with ODS.&amp;nbsp; A nice article on the topic is: &lt;A href="http://www.lexjansen.com/pharmasug/2010/ad/ad03.pdf"&gt;http://www.lexjansen.com/pharmasug/2010/ad/ad03.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jan 2012 22:58:48 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-01-10T22:58:48Z</dc:date>
    <item>
      <title>store p-values in a data set</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/store-p-values-in-a-data-set/m-p/27539#M1035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am doing some survival analysis and want to store the p-values that get output to html to a data set so I can display the p-values and look relationships.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example of some code I've run:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc lifetest data=data001_lifetest&lt;/P&gt;&lt;P&gt;outsurv=data001_outsurv &lt;/P&gt;&lt;P&gt;outtest=data001_outtest&lt;/P&gt;&lt;P&gt;plots=(s) notable; &lt;/P&gt;&lt;P&gt;time days*event(0); &lt;/P&gt;&lt;P&gt;strata study_group / test=logrank; &lt;/P&gt;&lt;P&gt;run;*0.70 seconds;&lt;/P&gt;&lt;P&gt;*p-value = 0.6355;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The outsurv and outtest data sets do not contain the p-values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This html output is generated:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE cellspacing="0" class="Table"&gt;&lt;THEAD&gt;&lt;TR&gt;&lt;TH class="Header" colspan="4" scope="colgroup" style="vertical-align: bottom; text-align: center;"&gt;Test of Equality over Strata&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TH class="Header" scope="colgroup" style="vertical-align: bottom; text-align: left;"&gt;Test&lt;/TH&gt;&lt;TH class="Header" scope="colgroup" style="vertical-align: bottom; text-align: right;"&gt;Chi-Square&lt;/TH&gt;&lt;TH class="Header" scope="colgroup" style="vertical-align: bottom; text-align: right;"&gt;DF&lt;/TH&gt;&lt;TH class="Header" scope="colgroup" style="vertical-align: bottom; text-align: right;"&gt;Pr &amp;gt; &lt;BR /&gt;Chi-Square&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="RowHeader" nowrap="nowrap" style="text-align: left;"&gt;Log-Rank&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: right;"&gt;0.2247&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: right;"&gt;0.6355&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I scrape the 0.6355 into a table so I don't have to manually record them all (I have ~400 data sets now, thousands more planned)?&amp;nbsp; Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 22:50:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/store-p-values-in-a-data-set/m-p/27539#M1035</guid>
      <dc:creator>pete6982</dc:creator>
      <dc:date>2012-01-10T22:50:15Z</dc:date>
    </item>
    <item>
      <title>store p-values in a data set</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/store-p-values-in-a-data-set/m-p/27540#M1036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Capture them with ODS.&amp;nbsp; A nice article on the topic is: &lt;A href="http://www.lexjansen.com/pharmasug/2010/ad/ad03.pdf"&gt;http://www.lexjansen.com/pharmasug/2010/ad/ad03.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 22:58:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/store-p-values-in-a-data-set/m-p/27540#M1036</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-01-10T22:58:48Z</dc:date>
    </item>
    <item>
      <title>store p-values in a data set</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/store-p-values-in-a-data-set/m-p/27541#M1037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc printto print='c:\output.txt';run;&lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;P&gt;proc printto;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can copy your output to another file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2012 05:46:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/store-p-values-in-a-data-set/m-p/27541#M1037</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-01-11T05:46:54Z</dc:date>
    </item>
  </channel>
</rss>

