<?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: How to interpolate between multiple variables and dimensions in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-interpolate-between-multiple-variables-and-dimensions/m-p/834413#M329895</link>
    <description>&lt;P&gt;There is reference to Delauney triangulation in SAS documentation for the&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/graphref/n1of8xvw6djmrhn1u0ancezwgs5z.htm#p021zgvthyd9eqn18ofn4o0qmb6p" target="_self"&gt;G3GRID Procedure,&lt;/A&gt;&amp;nbsp;although I have no idea of whether that makes it sufficient for solving the OP's request:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;The estimates of the first, and second derivatives are computed using the &lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;n&amp;nbsp;&lt;/EM&gt;&lt;SPAN&gt;nearest neighbors of the point, where &lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;n&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;is the number specified in the GRID statement's NEAR= option. A Delauney triangulation is used for the default method (Ripley 1981, p. 38). The&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;coordinates of the triangles are available in an output data set, if requested by the OUTTRI= option, in the PROC G3GRID statement. This is the default interpolation method.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Sep 2022 01:31:57 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2022-09-21T01:31:57Z</dc:date>
    <item>
      <title>How to interpolate between multiple variables and dimensions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-interpolate-between-multiple-variables-and-dimensions/m-p/834376#M329888</link>
      <description>&lt;P&gt;I asked a &lt;A href="https://communities.sas.com/t5/SAS-Programming/Find-observations-where-three-or-more-numeric-variables-exceed/td-p/831959" target="_self"&gt;similar question in this thread&lt;/A&gt; and was able to solve my problem using &lt;A href="https://sasnrd.com/nearest-neighbor-match-sas-hash-object/" target="_self"&gt;hash find nearest technique&lt;/A&gt;. I had to break my dataset into 10 sets representing 'buckets' which were then compared against a set of limits unique to each bucket. I think the hash technique can do this on one data set if that 'bucket' information is set up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A colleague of mine used matlab to skin the cat much more easily, using a matlab procedure called&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://www.mathworks.com/help/matlab/math/interpolating-scattered-data.html" target="_self"&gt;scatteredInterpolant&lt;/A&gt;.&amp;nbsp; You pass (in sas speak) an observation's various x's ( y=f(x1, x2, x3) ) and it will return a y value interpolated between each of the axes or x's.&amp;nbsp; In my case, the x's were operating conditions and I wanted to know my performance limit given those&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is super easy and does not incur the conservativeness when bucketing the dataset. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does SAS have anything like this?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 20:01:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-interpolate-between-multiple-variables-and-dimensions/m-p/834376#M329888</guid>
      <dc:creator>eh51</dc:creator>
      <dc:date>2022-09-20T20:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to interpolate between multiple variables and dimensions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-interpolate-between-multiple-variables-and-dimensions/m-p/834391#M329889</link>
      <description>&lt;P&gt;SAS has methods to interpolate in 3 or more dimensions using model fits. I don't think the specific method used in that MATLAB routine (Delaunay triangulation) is available in SAS, but other methods to do this using model fits include &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_tpspline_toc.htm" target="_self"&gt;PROC TPSPLINE&lt;/A&gt; and &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_adaptivereg_toc.htm" target="_self"&gt;PROC ADAPTIVEREG&lt;/A&gt;&amp;nbsp;(and possibly others).&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 21:50:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-interpolate-between-multiple-variables-and-dimensions/m-p/834391#M329889</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-20T21:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to interpolate between multiple variables and dimensions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-interpolate-between-multiple-variables-and-dimensions/m-p/834413#M329895</link>
      <description>&lt;P&gt;There is reference to Delauney triangulation in SAS documentation for the&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/graphref/n1of8xvw6djmrhn1u0ancezwgs5z.htm#p021zgvthyd9eqn18ofn4o0qmb6p" target="_self"&gt;G3GRID Procedure,&lt;/A&gt;&amp;nbsp;although I have no idea of whether that makes it sufficient for solving the OP's request:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;The estimates of the first, and second derivatives are computed using the &lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;n&amp;nbsp;&lt;/EM&gt;&lt;SPAN&gt;nearest neighbors of the point, where &lt;/SPAN&gt;&lt;EM class="xisDoc-userSuppliedValue"&gt;n&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;is the number specified in the GRID statement's NEAR= option. A Delauney triangulation is used for the default method (Ripley 1981, p. 38). The&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;coordinates of the triangles are available in an output data set, if requested by the OUTTRI= option, in the PROC G3GRID statement. This is the default interpolation method.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 01:31:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-interpolate-between-multiple-variables-and-dimensions/m-p/834413#M329895</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2022-09-21T01:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to interpolate between multiple variables and dimensions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-interpolate-between-multiple-variables-and-dimensions/m-p/834456#M329906</link>
      <description>&lt;P&gt;Calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 12:14:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-interpolate-between-multiple-variables-and-dimensions/m-p/834456#M329906</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-09-21T12:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to interpolate between multiple variables and dimensions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-interpolate-between-multiple-variables-and-dimensions/m-p/834464#M329907</link>
      <description>&lt;P&gt;Interesting, I must have spelled Delauney wrong when I did my search because I didn't find it, but you are correct, it is in PROC G3GRID.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The difference between interpolation methods and the model fitting methods I spoke of is that the model fitting methods will smooth out noise in the data, whereas interpolation does not. The model fitting methods require a Y-variable (response variable) which may not be appropriate for the original user's problem.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 12:43:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-interpolate-between-multiple-variables-and-dimensions/m-p/834464#M329907</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-21T12:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to interpolate between multiple variables and dimensions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-interpolate-between-multiple-variables-and-dimensions/m-p/834470#M329909</link>
      <description>&lt;P&gt;In general, you should be careful using linear interpolation from the raw response values because the response is often noisy. All parametric and nonparametric regression techniques are essentially ways to fit a smoother through the data and use the smoother to predict ("interpolate") the response at a new point. The regression surface smooths out the noise and gives a better, more robust, fit to the data. It can also handle issues such as repeated values, where you measure the response at the (x1, x2, x3,...) point multiple times and obtain different responses each time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without knowing more about your data, my generic suggestion is to fit a quadratic response surface by using &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_rsreg_toc.htm" target="_self"&gt;PROC RSREG&lt;/A&gt;.&amp;nbsp; You can then interpolate from the response surface. PROC RSREG supports aritrarily many explanatory variables. &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_rsreg_gettingstarted01.htm" target="_self"&gt;The Getting Started example shows how to find predictions from the model&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 13:15:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-interpolate-between-multiple-variables-and-dimensions/m-p/834470#M329909</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-09-21T13:15:45Z</dc:date>
    </item>
  </channel>
</rss>

