<?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: Using simulation to compute p-values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-simulation-to-compute-p-values/m-p/367377#M87446</link>
    <description>&lt;P&gt;Please supply sample data and code that show what you are trying to accomplish.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The title of this topic includes the phrase "using simulation", but you do not mention simulation in your question. The typical simulation approach to estimate a p-value is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Compute a statistic for the observed data&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;Simulate a sample from a known population that is appropriate for the observed data. (aka, simulate from the "null distribution.")&lt;/P&gt;
&lt;P&gt;3. Compute the same statistic for the simulated data.&lt;/P&gt;
&lt;P&gt;4. Repeat Steps 2-3 many times.&lt;/P&gt;
&lt;P&gt;5. Compare the observed statistic to the distribution of the statistics on the simulated samples. The Monte Carlo p-value is the proportion of simulated statistics that are more extreme than the observed statistic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The same technique is used to &lt;A href="http://blogs.sas.com/content/iml/2011/11/02/how-to-compute-p-values-for-a-bootstrap-distribution.html" target="_self"&gt;estimate a p-value for a bootstrap distribution.&lt;/A&gt;&amp;nbsp;For a simulation example, you can see the article on &lt;A href="http://blogs.sas.com/content/iml/2015/10/28/simulation-exact-tables.html" target="_self"&gt;using Monte Carlo simulation to estimate the p-value for the chi-square test.&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jun 2017 14:14:24 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2017-06-15T14:14:24Z</dc:date>
    <item>
      <title>Using simulation to compute p-values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-simulation-to-compute-p-values/m-p/367348#M87440</link>
      <description>&lt;P&gt;Hello SAS users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used the SEVERITY procedure to fit and test data dstribution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Among all the stats and plots available, one can have the critical values for the Anderson-Darling test.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I wonder about a way to compute the relative p-value for such statistics/test.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you suggest a way to compute that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The probability distribution is the Geenralyzed Pareto distribution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all in advance for the help!!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 13:18:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-simulation-to-compute-p-values/m-p/367348#M87440</guid>
      <dc:creator>Quantopic</dc:creator>
      <dc:date>2017-06-15T13:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using simulation to compute p-values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-simulation-to-compute-p-values/m-p/367377#M87446</link>
      <description>&lt;P&gt;Please supply sample data and code that show what you are trying to accomplish.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The title of this topic includes the phrase "using simulation", but you do not mention simulation in your question. The typical simulation approach to estimate a p-value is&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Compute a statistic for the observed data&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;Simulate a sample from a known population that is appropriate for the observed data. (aka, simulate from the "null distribution.")&lt;/P&gt;
&lt;P&gt;3. Compute the same statistic for the simulated data.&lt;/P&gt;
&lt;P&gt;4. Repeat Steps 2-3 many times.&lt;/P&gt;
&lt;P&gt;5. Compare the observed statistic to the distribution of the statistics on the simulated samples. The Monte Carlo p-value is the proportion of simulated statistics that are more extreme than the observed statistic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The same technique is used to &lt;A href="http://blogs.sas.com/content/iml/2011/11/02/how-to-compute-p-values-for-a-bootstrap-distribution.html" target="_self"&gt;estimate a p-value for a bootstrap distribution.&lt;/A&gt;&amp;nbsp;For a simulation example, you can see the article on &lt;A href="http://blogs.sas.com/content/iml/2015/10/28/simulation-exact-tables.html" target="_self"&gt;using Monte Carlo simulation to estimate the p-value for the chi-square test.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2017 14:14:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-simulation-to-compute-p-values/m-p/367377#M87446</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-06-15T14:14:24Z</dc:date>
    </item>
  </channel>
</rss>

