<?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: Prediction profiler does not work if formula contains row statement in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Prediction-profiler-does-not-work-if-formula-contains-row/m-p/520744#M74635</link>
    <description>&lt;P&gt;The Row() function used as a right-hand value will return a constant, invalid row number (0). It is meant to be used as a right-hand value in the argument to the For Each Row() function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See help about &lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/iterate-on-rows-in-a-table.shtml" target="_self"&gt;iterating over rows&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are you trying to do? In what way is a row number important to your purpose?&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jul 2022 14:02:52 GMT</pubDate>
    <dc:creator>Mark_Bailey</dc:creator>
    <dc:date>2022-07-13T14:02:52Z</dc:date>
    <item>
      <title>Prediction profiler does not work if formula contains row statement</title>
      <link>https://community.jmp.com/t5/Discussions/Prediction-profiler-does-not-work-if-formula-contains-row/m-p/520638#M74629</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't get the prediction profiler to display predictions if my formula contains a Row() statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MWE:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the Formula for Column5:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;:x&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;works fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LukasKuerten_0-1657710415041.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43902i83B69DAC66DD3BFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LukasKuerten_0-1657710415041.png" alt="LukasKuerten_0-1657710415041.png" /&gt;&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;&lt;P&gt;while the formula for Column4:&lt;/P&gt;&lt;P&gt;:x[Row()]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;results in the prediction not being computed:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LukasKuerten_1-1657710448338.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/43903i14DB4FF26279F0A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LukasKuerten_1-1657710448338.png" alt="LukasKuerten_1-1657710448338.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Obviously I wouldn't need the Row() statement in the above MWE, but I've run into this problem while trying to build something somewhat more involved. I'm using JMP 16.12.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:25:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Prediction-profiler-does-not-work-if-formula-contains-row/m-p/520638#M74629</guid>
      <dc:creator>LukasKuerten</dc:creator>
      <dc:date>2023-06-11T11:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Prediction profiler does not work if formula contains row statement</title>
      <link>https://community.jmp.com/t5/Discussions/Prediction-profiler-does-not-work-if-formula-contains-row/m-p/520744#M74635</link>
      <description>&lt;P&gt;The Row() function used as a right-hand value will return a constant, invalid row number (0). It is meant to be used as a right-hand value in the argument to the For Each Row() function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See help about &lt;A href="https://www.jmp.com/support/help/en/16.2/#page/jmp/iterate-on-rows-in-a-table.shtml" target="_self"&gt;iterating over rows&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are you trying to do? In what way is a row number important to your purpose?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 14:02:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Prediction-profiler-does-not-work-if-formula-contains-row/m-p/520744#M74635</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2022-07-13T14:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Prediction profiler does not work if formula contains row statement</title>
      <link>https://community.jmp.com/t5/Discussions/Prediction-profiler-does-not-work-if-formula-contains-row/m-p/520804#M74637</link>
      <description>&lt;P&gt;I'm using the Row() function in the formula for a formula column, not in a standalone script. Shouldn't Row() return a value for each cell in this case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula column I'm trying to profile calculates the cumulative sum / numeric integral of column x up to that row. I've both tried the built-in Col Cumulative Sum function and explicitly programmed the iterative solution int_i = int_{i-1} + x_i , but neither work with the profiler.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 15:55:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Prediction-profiler-does-not-work-if-formula-contains-row/m-p/520804#M74637</guid>
      <dc:creator>LukasKuerten</dc:creator>
      <dc:date>2022-07-13T15:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Prediction profiler does not work if formula contains row statement</title>
      <link>https://community.jmp.com/t5/Discussions/Prediction-profiler-does-not-work-if-formula-contains-row/m-p/520851#M74638</link>
      <description>&lt;P&gt;Yes, the Row() function will return the current row in a column formula.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So your formula looks something like this one?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If(
	Row() == 1,
		:x,
	:x + Lag( :x )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Jul 2022 17:41:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Prediction-profiler-does-not-work-if-formula-contains-row/m-p/520851#M74638</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2022-07-13T17:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Prediction profiler does not work if formula contains row statement</title>
      <link>https://community.jmp.com/t5/Discussions/Prediction-profiler-does-not-work-if-formula-contains-row/m-p/521185#M74655</link>
      <description>&lt;P&gt;Exactly, except it's Lag(:integral)&amp;nbsp; &amp;nbsp;(i.e. the column itself), not Lag (:x)&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2022 07:57:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Prediction-profiler-does-not-work-if-formula-contains-row/m-p/521185#M74655</guid>
      <dc:creator>LukasKuerten</dc:creator>
      <dc:date>2022-07-14T07:57:07Z</dc:date>
    </item>
  </channel>
</rss>

