<?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: JMP Script for inverse prediction in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49134#M27926</link>
    <description>&lt;P&gt;I would change the methodology you are using to create the new columns to using the function&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Clone Formula Column()&lt;/P&gt;
&lt;P&gt;Definition and an example(I copied it into this response) is available in the Scripting Index&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Scripting Index==&amp;gt;Data Table Cols==&amp;gt;Clone Formula Column&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Blood Pressure.jmp" );
dt &amp;lt;&amp;lt; New Column( "Day 1",
	Formula( (:BP 8M + :BP 12M + :BP 6M) / 3 )
);
list1 = {:BP 8W, :BP 8F};
list2 = {:BP 12W, :BP 12F};
list3 = {:BP 6W, :BP 6F};
dt &amp;lt;&amp;lt;
Clone Formula Column(
	"Day 1",
	2,
	Substitute Column Reference( :BP 8M, list1 ),
	Substitute Column Reference( :BP 12M, list2 ),
	Substitute Column Reference( :BP 6M, list3 )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 02 Jan 2018 14:37:41 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-01-02T14:37:41Z</dc:date>
    <item>
      <title>JMP Script for inverse prediction</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49097#M27898</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to automate my data analysis, therefore I wanted to write myself a script to make things easier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, I want to take my standards to generate a standard curve using 4P fit. (Columns 1, 2, 3 are triplicates of those standards, so I want to have an average value)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Afterwards, I want to use the inverse prediction formula that has been generated by the 4P fit and apply it to the remaining samples (Columns 4 to 12, they are also in triplicates. e.i. columns 4, 5, 6 take average and apply inverse prediction)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reason why I stack all my data is that it makes a lot easier to take all this data and put it in the official report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance !&lt;/P&gt;&lt;P&gt;Robert&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2017 10:12:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49097#M27898</guid>
      <dc:creator>Robertasm</dc:creator>
      <dc:date>2017-12-29T10:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Script for inverse prediction</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49098#M27899</link>
      <description>&lt;P&gt;What is the question you are asking?&lt;/P&gt;
&lt;P&gt;I understand what you want to do, and I see the script.&amp;nbsp; Doesn't the script work?&amp;nbsp; Do you want to set the script up to be automated by running the JMP Scheduler?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure what you are asking.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2017 12:53:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49098#M27899</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-12-29T12:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Script for inverse prediction</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49099#M27900</link>
      <description>&lt;P&gt;Sorry for that !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my problem is that my script does not work fully. For some reason it does not give me the inverse prediction in the hcp column (when I check the formula in the hcp column it is emty for some reason)&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2017 12:58:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49099#M27900</guid>
      <dc:creator>Robertasm</dc:creator>
      <dc:date>2017-12-29T12:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Script for inverse prediction</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49100#M27901</link>
      <description>&lt;P&gt;The Scripting Index for "Save Inverse Prediction Formula" specifies the following structure to produce the new column&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;fc=dt&amp;lt;&amp;lt;Fit Curve(Y( :average), X( :Log conc));
fc &amp;lt;&amp;lt; Fit Logistic 4P(Save inverse prediction Formula);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2017 13:06:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49100#M27901</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-12-29T13:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Script for inverse prediction</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49124#M27916</link>
      <description>&lt;P&gt;Hello again,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I did correct this mistake, but it still doesn't generate me the last column with inverse predicted values for my other samples... So I suppose that there is a mistake or I am missing a line with the part where I want to get the inverse prediction formula and set it for hcp column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2018 08:31:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49124#M27916</guid>
      <dc:creator>Robertasm</dc:creator>
      <dc:date>2018-01-02T08:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Script for inverse prediction</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49134#M27926</link>
      <description>&lt;P&gt;I would change the methodology you are using to create the new columns to using the function&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Clone Formula Column()&lt;/P&gt;
&lt;P&gt;Definition and an example(I copied it into this response) is available in the Scripting Index&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;Scripting Index==&amp;gt;Data Table Cols==&amp;gt;Clone Formula Column&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Blood Pressure.jmp" );
dt &amp;lt;&amp;lt; New Column( "Day 1",
	Formula( (:BP 8M + :BP 12M + :BP 6M) / 3 )
);
list1 = {:BP 8W, :BP 8F};
list2 = {:BP 12W, :BP 12F};
list3 = {:BP 6W, :BP 6F};
dt &amp;lt;&amp;lt;
Clone Formula Column(
	"Day 1",
	2,
	Substitute Column Reference( :BP 8M, list1 ),
	Substitute Column Reference( :BP 12M, list2 ),
	Substitute Column Reference( :BP 6M, list3 )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Jan 2018 14:37:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49134#M27926</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-01-02T14:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Script for inverse prediction</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49301#M28026</link>
      <description>&lt;P&gt;Also, could someone help me with the script for the mean formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't get it to work for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do is to take 3 columns and get an average of 3 columns across all rows. JMP script guide doesn't provide the script for it...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 13:54:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49301#M28026</guid>
      <dc:creator>Robertasm</dc:creator>
      <dc:date>2018-01-05T13:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Script for inverse prediction</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49308#M28027</link>
      <description>&lt;P&gt;I am not exactly sure of what you are asking for.&amp;nbsp; There are 2 guesses as to what you are looking for;&lt;/P&gt;
&lt;P&gt;1. You want the mean of 3 columns separately for each row.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;TheMean = Mean( :A, :B, :C)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;2. You want to find the average of all of the data for 3 columns:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;TheMean = ( Col Sum( :A ) + Col Sum( :B ) + Col Sum( :C ) ) /
     ( Col Number( :A ) + Col Number( :B ) + Col Number( :C ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The above piece of code could be shortened to&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;TheMean = Mean( Col Mean( :A ), Col Mean( :B ), Col Mean( :C ) );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;if the number of data points are equal in each of the columns&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 15:19:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49308#M28027</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-01-05T15:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Script for inverse prediction</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49362#M28067</link>
      <description>&lt;P&gt;I have managed to correct my script and it does produce me the last "hcp" column results according to inverse prediction.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The next question I have is why when I change my column names, hcp column no longer produces inverse prediction for me, is there a mistake in my script ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script line 11:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;fc=dt&amp;lt;&amp;lt;Fit Curve(Y( :average), X( :Log conc), Fit Logistic 4P);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I change the name of my my column from "average" to lets say Standard Average, I no longer get my predictions in the hcp column. I do change my column name in the line 7 as well to Standard Average before running the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 12:01:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49362#M28067</guid>
      <dc:creator>Robertasm</dc:creator>
      <dc:date>2018-01-08T12:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Script for inverse prediction</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49366#M28070</link>
      <description>&lt;P&gt;What error message is in the log?&lt;/P&gt;
&lt;P&gt;Have you just tried changing line 7 to see if what you are thinking might fix the problem does fix the problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 13:43:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49366#M28070</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-01-08T13:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Script for inverse prediction</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49427#M28108</link>
      <description>&lt;P&gt;It says name unresolved..&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 13:48:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49427#M28108</guid>
      <dc:creator>Robertasm</dc:creator>
      <dc:date>2018-01-09T13:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Script for inverse prediction</title>
      <link>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49429#M28109</link>
      <description>&lt;P&gt;What the error message is saying, is that the&amp;nbsp; name "Standard Average" or whatever name you used does not exist.&amp;nbsp; So apparently, there is not a column in your data table named "Standard Average".&amp;nbsp; In looking at your script, the column named "Average" is created on line 7 and then it is referenced when running the "Fit Curve" platform on line 11.&amp;nbsp; So if the sole issue is that you want to call the column "Standard Average" rather than "Average", then you have to change the name of the column when it is created in the "New Column" message, so that you can reference the column with its different name in the "Fit Curve" platform..&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 14:16:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JMP-Script-for-inverse-prediction/m-p/49429#M28109</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-01-09T14:16:17Z</dc:date>
    </item>
  </channel>
</rss>

