<?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: Adding a P-Value Column to a Dataset in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/146000#M7647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RW9 thanks I actually don't have a fix list, will change every time. . I am not sure how to write the syntax to select a distinct list at place that list in the data null statement??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 May 2014 14:18:25 GMT</pubDate>
    <dc:creator>Mgarret</dc:creator>
    <dc:date>2014-05-06T14:18:25Z</dc:date>
    <item>
      <title>Adding a P-Value Column to a Dataset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/145994#M7641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi--&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;I have a dataset with Test and Control response scores for an email test. I want to generate a column&amp;nbsp; which gives the P-Value for the difference between the Control and Test &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;proportions.&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="line-height: 1.5em;"&gt;I &lt;/SPAN&gt;&lt;SPAN style="line-height: 19.5px;"&gt;normally&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt; calculate P-Values using Proc Freq with the chisq option but that only works for one observation at a time. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 10pt;"&gt;This is what I am looking for (with the P-Value column filled in of course):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 302px; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="121"&gt;&lt;STRONG&gt;Email_Type &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="color: rgb(87, 87, 87); text-align: center; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="53"&gt;&lt;STRONG&gt;Control&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl66" style="color: rgb(87, 87, 87); text-align: center; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="55"&gt;&lt;STRONG&gt;Test&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="color: rgb(87, 87, 87); text-align: center; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="73"&gt;&lt;STRONG&gt;P-Value&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;Spotlight Email&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.1838&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.1924&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;Movers&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.4559&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.3519&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;Event &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.1806&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.1820&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;Customer &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.2216&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.2118&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;Promo Roll &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.2813&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.3214&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;Contract Renewal &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.1599&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.1653&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;HMC Email&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.1531&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.1599&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;Speed &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.1805&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.1960&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;Acquisition &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.0984&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.0781&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;Rewards &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.1781&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.1885&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;Redbox &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.2479&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.2527&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="20" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;Onboarding &lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.1311&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt;&lt;SPAN style="color: #000000;"&gt;0.1401&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 22:13:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/145994#M7641</guid>
      <dc:creator>Mgarret</dc:creator>
      <dc:date>2014-05-05T22:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a P-Value Column to a Dataset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/145995#M7642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need more than that to calculate a p-value - the N or count specifically. &lt;/P&gt;&lt;P&gt;Once you have that the Proc T-Test has a way to calculate the test based on pre-calculated values, see the examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More than likely you'll have to merge the results in though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 22:29:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/145995#M7642</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-05-05T22:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a P-Value Column to a Dataset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/145996#M7643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rezza. Do you happen to have a link to good examples of proc ttest? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 22:33:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/145996#M7643</guid>
      <dc:creator>Mgarret</dc:creator>
      <dc:date>2014-05-05T22:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a P-Value Column to a Dataset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/145997#M7644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I generally refer to the documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_ttest_sect009.htm" title="http://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_ttest_sect009.htm"&gt;SAS/STAT(R) 9.2 User's Guide, Second Edition&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have proportion data you may want a different test, ie proc freq though. But then you have the same problem of getting all results in one table. I have a macro that does it that I can link to if you're interested. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 22:40:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/145997#M7644</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-05-05T22:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a P-Value Column to a Dataset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/145998#M7645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reeza. That would be great if you could send me your link to the Macro. Thanks!!!! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 13:28:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/145998#M7645</guid>
      <dc:creator>Mgarret</dc:creator>
      <dc:date>2014-05-06T13:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a P-Value Column to a Dataset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/145999#M7646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you not just wrap your code up in a call execute block, e.g (very pseudo):&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;&amp;nbsp; create table WANT (EMAIL_TYPE char(200),CONTROL num,TEST num,P-VALUE num);&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;&amp;nbsp; do i="Spotlight Email","Movers","Event"...;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('proc ttest...; where email='||strip(i)||';...;');&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('proc sql; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; insert into WANT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select&amp;nbsp; "'||strip(i)||'", &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESULT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from&amp;nbsp;&amp;nbsp;&amp;nbsp; OUTPUT_FROM_TTEST;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quit;');&lt;BR /&gt;&amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that if you don't have a fixed list (from the do part) then you can sql distinct list and then set that dataset in the data null.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 13:33:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/145999#M7646</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-05-06T13:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a P-Value Column to a Dataset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/146000#M7647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RW9 thanks I actually don't have a fix list, will change every time. . I am not sure how to write the syntax to select a distinct list at place that list in the data null statement??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 14:18:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/146000#M7647</guid>
      <dc:creator>Mgarret</dc:creator>
      <dc:date>2014-05-06T14:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a P-Value Column to a Dataset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/146001#M7648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does your input data look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 14:20:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/146001#M7648</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-05-06T14:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a P-Value Column to a Dataset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/146002#M7649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;&amp;nbsp; create table WANT (EMAIL_TYPE char(200),CONTROL num,TEST num,P-VALUE num);&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create table LOOP as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; distinct EMAIL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HAVE;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set LOOP;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('proc ttest...; where email='||strip(EMAIL)||';...;');&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('proc sql; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; insert into WANT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select&amp;nbsp; "'||strip(EMAIL)||'", &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RESULT&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from&amp;nbsp;&amp;nbsp;&amp;nbsp; OUTPUT_FROM_TTEST;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quit;');&lt;BR /&gt;&amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 14:27:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/146002#M7649</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-05-06T14:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a P-Value Column to a Dataset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/146003#M7650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reeza-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 260px; border: 1px solid #000000;"&gt;&lt;TBODY&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl63" height="21" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;STRONG&gt;Email_Type&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;&lt;STRONG&gt;Panel&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;&lt;STRONG&gt;Sample&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;STRONG&gt;Score&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl64" height="21" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Spotlight Email&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Test &lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;222&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.192&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Spotlight Email&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Control&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;232&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.184&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Movers&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Test &lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;456&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.352&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl64" height="21" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Movers&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Control&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;422&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.456&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl64" height="21" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Event&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Test &lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;789&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.182&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Event&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Control&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;736&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.181&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Customer&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Test &lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;383&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.212&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl64" height="21" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Customer&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Control&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;376&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.222&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Promo Roll&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Test &lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;235&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.321&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl64" height="21" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Promo Roll&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Control&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;236&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.281&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Contract Renewal&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Test &lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;222&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.165&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl64" height="21" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Contract Renewal&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Control&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;211&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.16&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;HMC Email&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Test &lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;245&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.16&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl64" height="21" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;HMC Email&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Control&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;345&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.153&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Speed&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Test &lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;322&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.196&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl64" height="21" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Speed&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Control&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;435&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.181&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Acquisition&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Test &lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;452&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.078&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl64" height="21" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Acquisition&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Control&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;345&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.098&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Rewards&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Test &lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;340&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.189&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl64" height="21" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Rewards&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Control&lt;/TD&gt;&lt;TD class="xl65" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;339&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.178&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Redbox&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Test &lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;222&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.253&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl64" height="21" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Redbox&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Control&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;232&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.248&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Onboarding&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Test &lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;456&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.14&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl64" height="21" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="110"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Onboarding&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="48"&gt;Control&lt;/TD&gt;&lt;TD class="xl64" style="color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="56"&gt;422&lt;/TD&gt;&lt;TD class="xl64" style="font-style: inherit; color: #575757; text-align: left; padding: 0px; background-color: transparent; font-family: arial, helvetica, sans-serif;" width="46"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;0.131&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 15:38:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/146003#M7650</guid>
      <dc:creator>Mgarret</dc:creator>
      <dc:date>2014-05-06T15:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a P-Value Column to a Dataset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/146004#M7651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote" modifiedtitle="true"&gt;
&lt;P&gt;Reeza wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I generally refer to the documentation.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;That's a bit "old school" don't you think. :smileygrin:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 16:14:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/146004#M7651</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-05-06T16:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a P-Value Column to a Dataset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/146005#M7652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reeza-- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was just wondering if you were able to find that link to the macro you mentioned. I have still been trying to figure this out.&amp;nbsp; Thanks! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 15:38:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/146005#M7652</guid>
      <dc:creator>Mgarret</dc:creator>
      <dc:date>2014-05-08T15:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a P-Value Column to a Dataset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/146006#M7653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My macro won't work for your data structure, but here's a different way. If you can avoid macro's always easier anyways! &lt;/P&gt;&lt;P&gt;It first reformats the data to a different structure and then calculates the p-values in one shot and you can merge those in.&lt;/P&gt;&lt;P&gt;Hope it's helpful.&lt;/P&gt;&lt;P&gt;If you have questions post back &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;informat email_type $18.;&lt;/P&gt;&lt;P&gt;input Email_Type $&amp;nbsp;&amp;nbsp;&amp;nbsp; Panel $&amp;nbsp;&amp;nbsp;&amp;nbsp; Sample&amp;nbsp;&amp;nbsp;&amp;nbsp; Score;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;Spotlight&amp;nbsp;&amp;nbsp;&amp;nbsp; Test&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 222&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.192&lt;/P&gt;&lt;P&gt;Spotlight&amp;nbsp;&amp;nbsp;&amp;nbsp; Control&amp;nbsp;&amp;nbsp;&amp;nbsp; 232&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.184&lt;/P&gt;&lt;P&gt;Movers&amp;nbsp;&amp;nbsp;&amp;nbsp; Test&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 456&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.352&lt;/P&gt;&lt;P&gt;Movers&amp;nbsp;&amp;nbsp;&amp;nbsp; Control&amp;nbsp;&amp;nbsp;&amp;nbsp; 422&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.456&lt;/P&gt;&lt;P&gt;Event&amp;nbsp;&amp;nbsp;&amp;nbsp; Test&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 789&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.182&lt;/P&gt;&lt;P&gt;Event&amp;nbsp;&amp;nbsp;&amp;nbsp; Control&amp;nbsp;&amp;nbsp;&amp;nbsp; 736&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.181&lt;/P&gt;&lt;P&gt;Customer&amp;nbsp;&amp;nbsp;&amp;nbsp; Test&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 383&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.212&lt;/P&gt;&lt;P&gt;Customer&amp;nbsp;&amp;nbsp;&amp;nbsp; Control&amp;nbsp;&amp;nbsp;&amp;nbsp; 376&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.222&lt;/P&gt;&lt;P&gt;Promo&amp;nbsp;&amp;nbsp;&amp;nbsp; Test&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 235&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.321&lt;/P&gt;&lt;P&gt;Promo&amp;nbsp;&amp;nbsp;&amp;nbsp; Control&amp;nbsp;&amp;nbsp;&amp;nbsp; 236&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.281&lt;/P&gt;&lt;P&gt;Contract&amp;nbsp;&amp;nbsp;&amp;nbsp; Test&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 222&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.165&lt;/P&gt;&lt;P&gt;Contract&amp;nbsp;&amp;nbsp;&amp;nbsp; Control&amp;nbsp;&amp;nbsp;&amp;nbsp; 211&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.16&lt;/P&gt;&lt;P&gt;HMC&amp;nbsp;&amp;nbsp;&amp;nbsp; Test&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 245&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.16&lt;/P&gt;&lt;P&gt;HMC&amp;nbsp;&amp;nbsp;&amp;nbsp; Control&amp;nbsp;&amp;nbsp;&amp;nbsp; 345&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.153&lt;/P&gt;&lt;P&gt;Speed&amp;nbsp;&amp;nbsp;&amp;nbsp; Test&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 322&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.196&lt;/P&gt;&lt;P&gt;Speed&amp;nbsp;&amp;nbsp;&amp;nbsp; Control&amp;nbsp;&amp;nbsp;&amp;nbsp; 435&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.181&lt;/P&gt;&lt;P&gt;Acquisition&amp;nbsp;&amp;nbsp;&amp;nbsp; Test&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 452&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.078&lt;/P&gt;&lt;P&gt;Acquisition&amp;nbsp;&amp;nbsp;&amp;nbsp; Control&amp;nbsp;&amp;nbsp;&amp;nbsp; 345&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.098&lt;/P&gt;&lt;P&gt;Rewards&amp;nbsp;&amp;nbsp;&amp;nbsp; Test&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 340&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.189&lt;/P&gt;&lt;P&gt;Rewards&amp;nbsp;&amp;nbsp;&amp;nbsp; Control&amp;nbsp;&amp;nbsp;&amp;nbsp; 339&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.178&lt;/P&gt;&lt;P&gt;Redbox&amp;nbsp;&amp;nbsp;&amp;nbsp; Test&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 222&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.253&lt;/P&gt;&lt;P&gt;Redbox&amp;nbsp;&amp;nbsp;&amp;nbsp; Control&amp;nbsp;&amp;nbsp;&amp;nbsp; 232&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.248&lt;/P&gt;&lt;P&gt;Onboarding&amp;nbsp;&amp;nbsp;&amp;nbsp; Test&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 456&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.14&lt;/P&gt;&lt;P&gt;Onboarding&amp;nbsp;&amp;nbsp;&amp;nbsp; Control&amp;nbsp;&amp;nbsp;&amp;nbsp; 422&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.131&lt;/P&gt;&lt;P&gt;;;;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data step1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; status="Success";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; count=floor(score*sample);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; count=Sample-count;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; status="Failure";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*get the chisq p-values;&lt;/P&gt;&lt;P&gt;ods table chisq=chisq_Summary;&lt;/P&gt;&lt;P&gt;proc freq data=step1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; by email_type notsorted;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; table panel*status/chisq;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; weight count;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data chisq_summary2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set chisq_summary;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where statistic="Chi-Square";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*merge in with original table;&lt;/P&gt;&lt;P&gt;*Left for you to do;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2014 17:49:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/146006#M7653</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-05-08T17:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a P-Value Column to a Dataset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/146007#M7654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In reply to @data_null: "Old school" defines me.&amp;nbsp; I would guess 80% of the answers I have given here are because I read the f'in manual, and lo and behold, there was the answer...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 13:19:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Adding-a-P-Value-Column-to-a-Dataset/m-p/146007#M7654</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-05-09T13:19:59Z</dc:date>
    </item>
  </channel>
</rss>

