<?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: Kernel density estimates - comparison proc univariate and proc kde - Number of grid points in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Kernel-density-estimates-comparison-proc-univariate-and-proc-kde/m-p/865730#M42799</link>
    <description>Thks a lot for your answer very clear. That was exactly chat i wanted to know</description>
    <pubDate>Wed, 22 Mar 2023 13:56:35 GMT</pubDate>
    <dc:creator>Tiffanie</dc:creator>
    <dc:date>2023-03-22T13:56:35Z</dc:date>
    <item>
      <title>Kernel density estimates - comparison proc univariate and proc kde - Number of grid points</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Kernel-density-estimates-comparison-proc-univariate-and-proc-kde/m-p/864762#M42761</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm proceeding to a comparison of the default options for kernel distributions estimates between the "proc univariate" (HISTOGRAM statement / KERNEL option) and the "proc kde" (UNIVAR option).&lt;BR /&gt;There is one point where I couldn't find the information for the proc univariate it is about the number of grid points.&lt;BR /&gt;For the proc kde it can be chosen with the NGRID option, and is set by default to 401 points.&lt;/P&gt;&lt;P&gt;On the other hand it seems that for the proc univariate it is fixed without the possibility of modifying it, but I cannot find what its value is by default ?&lt;/P&gt;&lt;P&gt;Could you help me on the subject please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;Tiffanie.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 09:26:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Kernel-density-estimates-comparison-proc-univariate-and-proc-kde/m-p/864762#M42761</guid>
      <dc:creator>Tiffanie</dc:creator>
      <dc:date>2023-03-17T09:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel density estimates - comparison proc univariate and proc kde - Number of grid points</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Kernel-density-estimates-comparison-proc-univariate-and-proc-kde/m-p/864769#M42762</link>
      <description>&lt;P&gt;I am not sure what you mean by "grid points" in terms of Proc Univariate. If you mean the tickmarks used by the GRID statement, you can set a value list with the VAXIS option such as in:&lt;/P&gt;
&lt;PRE&gt;proc univariate data=sashelp.stocks;
   var close;
   histogram /vaxis = (0 to 25 by 5);
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can control the number of bars using BARWIDTH, to specify how wide each bar of the histogram should be, or the Midpoints to list the center of each displayed bar.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 09:49:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Kernel-density-estimates-comparison-proc-univariate-and-proc-kde/m-p/864769#M42762</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-03-17T09:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel density estimates - comparison proc univariate and proc kde - Number of grid points</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Kernel-density-estimates-comparison-proc-univariate-and-proc-kde/m-p/865107#M42780</link>
      <description>&lt;P&gt;There isn't a simple answer, but if you don't use the LOWER= or UPPER= options, the OUTKERNEL= data set is formed by doing the following:&lt;/P&gt;
&lt;P&gt;1. Divide the range (max-min) by 128. This is the step size, dx = (max-min)/128.&lt;/P&gt;
&lt;P&gt;2. Evaluate the kernel on the 128 intervals whose endpoints min, min+dx, min+2*dx, ..., max.&lt;/P&gt;
&lt;P&gt;3. Usually, we can't stop there, because we want the KDE to integrate to unity over the support of the distribution. So start adding more grid points before x=min and after x=max until the integral is approximately 1.&amp;nbsp; For example, on the left add the points&amp;nbsp;&lt;/P&gt;
&lt;P&gt;..., min-3*dx, min-2*dx, min-dx&lt;/P&gt;
&lt;P&gt;and on the right add the points&lt;/P&gt;
&lt;P&gt;max+dx, max+2*dx, max+3*dx, ...&lt;/P&gt;
&lt;P&gt;4. Stop adding points in the tail when the tail area is inconsequential, such as less than 1E-6.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As a result, you'll always get at least 128 points, but sometimes you will get 160 or 170 or more points. It depends on the area in the tails of the distribution, which depends on the data and on the bandwidth of the kernel.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2023 19:34:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Kernel-density-estimates-comparison-proc-univariate-and-proc-kde/m-p/865107#M42780</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-03-19T19:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel density estimates - comparison proc univariate and proc kde - Number of grid points</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Kernel-density-estimates-comparison-proc-univariate-and-proc-kde/m-p/865730#M42799</link>
      <description>Thks a lot for your answer very clear. That was exactly chat i wanted to know</description>
      <pubDate>Wed, 22 Mar 2023 13:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Kernel-density-estimates-comparison-proc-univariate-and-proc-kde/m-p/865730#M42799</guid>
      <dc:creator>Tiffanie</dc:creator>
      <dc:date>2023-03-22T13:56:35Z</dc:date>
    </item>
  </channel>
</rss>

