<?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 Using simulation to compute p-values in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Using-simulation-to-compute-p-values/m-p/178187#M1764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all, Dear Rick,&lt;/P&gt;&lt;P&gt;I simulated 20,000 data of OLS coefficients under the null that the coefficient is equal to zero.&lt;/P&gt;&lt;P&gt;Now I have 20000 simulated data and one observed coefficient.&lt;/P&gt;&lt;P&gt;I want to calculate the p - value.( The probability of getting the results I did&amp;nbsp; given that the null hypothesis is true&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In Rick Wicklin's book, he suggested for chi-square procedure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pval=sum(Q&amp;gt;=qObs)/Numsample;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my case is it right? Isn't it p-value for one-tailed test ?&lt;/P&gt;&lt;P&gt;Do I need to take&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pval=&lt;SPAN style="color: #000000; text-decoration: underline;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;*sum(Q&amp;gt;=qObs)/Numsample;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank's,&lt;/P&gt;&lt;P&gt;Orit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jul 2014 12:01:20 GMT</pubDate>
    <dc:creator>oriti</dc:creator>
    <dc:date>2014-07-14T12:01:20Z</dc:date>
    <item>
      <title>Using simulation to compute p-values</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Using-simulation-to-compute-p-values/m-p/178187#M1764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all, Dear Rick,&lt;/P&gt;&lt;P&gt;I simulated 20,000 data of OLS coefficients under the null that the coefficient is equal to zero.&lt;/P&gt;&lt;P&gt;Now I have 20000 simulated data and one observed coefficient.&lt;/P&gt;&lt;P&gt;I want to calculate the p - value.( The probability of getting the results I did&amp;nbsp; given that the null hypothesis is true&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In Rick Wicklin's book, he suggested for chi-square procedure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pval=sum(Q&amp;gt;=qObs)/Numsample;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in my case is it right? Isn't it p-value for one-tailed test ?&lt;/P&gt;&lt;P&gt;Do I need to take&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pval=&lt;SPAN style="color: #000000; text-decoration: underline;"&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/SPAN&gt;*sum(Q&amp;gt;=qObs)/Numsample;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank's,&lt;/P&gt;&lt;P&gt;Orit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 12:01:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Using-simulation-to-compute-p-values/m-p/178187#M1764</guid>
      <dc:creator>oriti</dc:creator>
      <dc:date>2014-07-14T12:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using simulation to compute p-values</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Using-simulation-to-compute-p-values/m-p/178188#M1765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds like you want a two-sided test. For a discussion, see &lt;A href="http://blogs.sas.com/content/iml/2011/11/02/how-to-compute-p-values-for-a-bootstrap-distribution/" title="http://blogs.sas.com/content/iml/2011/11/02/how-to-compute-p-values-for-a-bootstrap-distribution/"&gt; How to compute p-values for a bootstrap distribution - The DO Loop&lt;/A&gt; .&amp;nbsp; For a two-sided example (and code), see p. 14 of this paper: &lt;A href="http://support.sas.com/resources/papers/proceedings10/329-2010.pdf" title="http://support.sas.com/resources/papers/proceedings10/329-2010.pdf"&gt;http://support.sas.com/resources/papers/proceedings10/329-2010.pdf&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 12:44:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Using-simulation-to-compute-p-values/m-p/178188#M1765</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2014-07-14T12:44:33Z</dc:date>
    </item>
  </channel>
</rss>

