<?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 Saving the prediction formula to an existing column? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/106#M106</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm a new JMP user. I have several prediction formula saved to columns, and other columns linked to those. Now I want to update the formulas (many) in the original prediction columns with the new regression formula. Saving the prediction formula seems only possible to a new appended column. I suppose I could copy the formula from the new column and paste into the original column, but it's tedious. Perhaps the whole thing can be scripted, like excel's macro recorder??&lt;BR /&gt;&lt;BR /&gt;Anyway, thanks in advance :)&lt;/img&gt;&lt;BR /&gt;Dave</description>
    <pubDate>Thu, 19 Feb 2009 02:38:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-02-19T02:38:40Z</dc:date>
    <item>
      <title>Saving the prediction formula to an existing column?</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/106#M106</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm a new JMP user. I have several prediction formula saved to columns, and other columns linked to those. Now I want to update the formulas (many) in the original prediction columns with the new regression formula. Saving the prediction formula seems only possible to a new appended column. I suppose I could copy the formula from the new column and paste into the original column, but it's tedious. Perhaps the whole thing can be scripted, like excel's macro recorder??&lt;BR /&gt;&lt;BR /&gt;Anyway, thanks in advance :)&lt;/img&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Thu, 19 Feb 2009 02:38:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/106#M106</guid>
      <dc:creator />
      <dc:date>2009-02-19T02:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Saving the prediction formula to an existing column?</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/107#M107</link>
      <description>It can be scripted with JSL, but there's nothing like a macro recorder for tasks like that. You could do something like the following:&lt;BR /&gt;&lt;BR /&gt;f = column("prednew") &amp;lt;&amp;lt; Get Formula;&lt;BR /&gt;column("predold") &amp;lt;&amp;lt; Set Formula( Name Expr( f ));&lt;BR /&gt;&lt;BR /&gt;Message was edited by: xan@jmp</description>
      <pubDate>Thu, 19 Feb 2009 13:49:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/107#M107</guid>
      <dc:creator>XanGregg</dc:creator>
      <dc:date>2009-02-19T13:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Saving the prediction formula to an existing column?</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/108#M108</link>
      <description>Where would I put that code? Does it work on the newest added column, or a column of a particular name?</description>
      <pubDate>Thu, 19 Feb 2009 14:03:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/108#M108</guid>
      <dc:creator />
      <dc:date>2009-02-19T14:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Saving the prediction formula to an existing column?</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/109#M109</link>
      <description>Put it in a script window and run it. Save it as a JSL file it you need it often. The given code has the column names built in. If you want the last column as the source, replace "prednew" with NCol(). &lt;BR /&gt;&lt;BR /&gt;Note I fixed an error in my previous post by adding Name Expr() to make sure the formula is not evaluated &lt;I&gt;before &lt;/I&gt;it is added to the new column.</description>
      <pubDate>Thu, 19 Feb 2009 14:17:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/109#M109</guid>
      <dc:creator>XanGregg</dc:creator>
      <dc:date>2009-02-19T14:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Saving the prediction formula to an existing column?</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/110#M110</link>
      <description>Thanks.</description>
      <pubDate>Fri, 20 Feb 2009 12:23:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/110#M110</guid>
      <dc:creator />
      <dc:date>2009-02-20T12:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Saving the prediction formula to an existing column?</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/111#M111</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Do you know how I can get the script to put the formula into a file as plain text?&lt;BR /&gt;&lt;BR /&gt;Very appreciated,&lt;BR /&gt;Dave</description>
      <pubDate>Fri, 27 Feb 2009 01:18:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/111#M111</guid>
      <dc:creator />
      <dc:date>2009-02-27T01:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Saving the prediction formula to an existing column?</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/112#M112</link>
      <description>Once you have the formula in a column, you can get it out, convert it to text, and then save it in a file.&lt;BR /&gt;&lt;BR /&gt;f = Column( "saved formula col" ) &amp;lt;&amp;lt; get formula;&lt;BR /&gt;t = Char( Name Expr( f ));&lt;BR /&gt;Save Text File( "myformula.txt", t );</description>
      <pubDate>Fri, 27 Feb 2009 14:12:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/112#M112</guid>
      <dc:creator>XanGregg</dc:creator>
      <dc:date>2009-02-27T14:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Saving the prediction formula to an existing column?</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/113#M113</link>
      <description>Silly question, maybe, but...&lt;BR /&gt;&lt;BR /&gt;How do I save a negative of the formula? i.e. formula * -1  ?</description>
      <pubDate>Fri, 27 Feb 2009 22:22:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/113#M113</guid>
      <dc:creator />
      <dc:date>2009-02-27T22:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Saving the prediction formula to an existing column?</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/114#M114</link>
      <description>one more question...how do I concatenate formulas into the single file?</description>
      <pubDate>Sat, 28 Feb 2009 22:03:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/114#M114</guid>
      <dc:creator />
      <dc:date>2009-02-28T22:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Saving the prediction formula to an existing column?</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/115#M115</link>
      <description>oncatenation of all formula seem to work like this:&lt;BR /&gt;&lt;BR /&gt;t = "";&lt;BR /&gt;f = Column( "Pred Formula neg MxBmin" ) &amp;lt;&amp;lt; get formula;&lt;BR /&gt;a = Char( Name Expr( f ));&lt;BR /&gt;t = Concat(t, a);&lt;BR /&gt;&lt;BR /&gt;t = concat(t, "\!N");&lt;BR /&gt;t = concat(t, "\!N");&lt;BR /&gt;f = Column( "Pred Formula MxBmin" ) &amp;lt;&amp;lt; get formula;&lt;BR /&gt;a = Char( Name Expr( f ));&lt;BR /&gt;t = Concat(t, a);&lt;BR /&gt;&lt;BR /&gt;t = concat(t, "\!N");&lt;BR /&gt;t = concat(t, "\!N");&lt;BR /&gt;f = Column( "Pred Formula MxBmax" ) &amp;lt;&amp;lt; get formula;&lt;BR /&gt;a = Char( Name Expr( f ));&lt;BR /&gt;t = Concat(t, a);&lt;BR /&gt;&lt;BR /&gt;t = concat(t, "\!N");&lt;BR /&gt;t = concat(t, "\!N");&lt;BR /&gt;f = Column( "Pred Formula MrB" ) &amp;lt;&amp;lt; get formula;&lt;BR /&gt;a = Char( Name Expr( f ));&lt;BR /&gt;t = Concat(t, a);&lt;BR /&gt;&lt;BR /&gt;t = concat(t, "\!N");&lt;BR /&gt;t = concat(t, "\!N");&lt;BR /&gt;f = Column( "Pred Formula neg FzR0min" ) &amp;lt;&amp;lt; get formula;&lt;BR /&gt;a = Char( Name Expr( f ));&lt;BR /&gt;t = Concat(t, a);&lt;BR /&gt;&lt;BR /&gt;Save Text File( "myformula.txt", t );</description>
      <pubDate>Sun, 01 Mar 2009 17:04:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/115#M115</guid>
      <dc:creator />
      <dc:date>2009-03-01T17:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Saving the prediction formula to an existing column?</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/116#M116</link>
      <description>xan-&lt;BR /&gt;&lt;BR /&gt;Using Concat(a,b), what kind of quoting do I need to append the following to a string?&lt;BR /&gt;&lt;BR /&gt;"MxBmin","[kNm]","=&lt;BR /&gt;&lt;BR /&gt;...of course, the quotes are confusing the concat() function :(&lt;/img&gt;</description>
      <pubDate>Sun, 01 Mar 2009 20:56:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/116#M116</guid>
      <dc:creator />
      <dc:date>2009-03-01T20:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Saving the prediction formula to an existing column?</title>
      <link>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/117#M117</link>
      <description>If you're trying to embed double quotes in a string, you can &lt;I&gt;escape &lt;/I&gt;them with the two characters \! . For example:&lt;BR /&gt;&lt;BR /&gt;  s = "text with \!"quotation marks\!".";</description>
      <pubDate>Tue, 03 Mar 2009 15:15:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Saving-the-prediction-formula-to-an-existing-column/m-p/117#M117</guid>
      <dc:creator>XanGregg</dc:creator>
      <dc:date>2009-03-03T15:15:07Z</dc:date>
    </item>
  </channel>
</rss>

