<?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: Automate saving of prediction formula using JMP script? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Automate-saving-of-prediction-formula-using-JMP-script/m-p/36708#M21556</link>
    <description>&lt;P&gt;How would this be modified if a flexible spline fit was to be used&lt;/P&gt;</description>
    <pubDate>Fri, 03 Mar 2017 14:07:43 GMT</pubDate>
    <dc:creator>mredford</dc:creator>
    <dc:date>2017-03-03T14:07:43Z</dc:date>
    <item>
      <title>Automate saving of prediction formula using JMP script?</title>
      <link>https://community.jmp.com/t5/Discussions/Automate-saving-of-prediction-formula-using-JMP-script/m-p/3524#M3524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hoping that someone with more JMP script-writing experience can offer some suggestions here.&amp;nbsp; What I'd like to do is fit a simple linear regression using the "Fit Model" option, then save the prediction formula for the subsequent model to my current data table automatically through the script.&amp;nbsp; I've been able to do the first part (fit the model), but the second part is proving difficult to figure out.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice would be much appreciated. I'm more familiar with programming in R or STATA, so it's been a process getting used to JSL.&amp;nbsp; Actually, if there are any recommendations for good JSL references (other than the JMP scripting guide, which I find incredibly lacking), that would also be fantastic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 15:04:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automate-saving-of-prediction-formula-using-JMP-script/m-p/3524#M3524</guid>
      <dc:creator>dozyme</dc:creator>
      <dc:date>2011-07-08T15:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Automate saving of prediction formula using JMP script?</title>
      <link>https://community.jmp.com/t5/Discussions/Automate-saving-of-prediction-formula-using-JMP-script/m-p/3525#M3525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Hi Dan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Does this solve your problem? It saves the predicted values in a column with a formula attached.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;linfit&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Fit Model&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 10pt;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Yvar &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Effects&lt;STRONG&gt;(&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 10pt;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;Xvar &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Personality&lt;STRONG&gt;(&lt;/STRONG&gt; Standard Least Squares &lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 10pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Run model&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black; font-size: 10pt; font-family: 'Courier New';"&gt;)&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;linfit&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: navy; font-size: 10pt;"&gt;&amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 10pt;"&gt;prediction formula&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Marianne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 15:27:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automate-saving-of-prediction-formula-using-JMP-script/m-p/3525#M3525</guid>
      <dc:creator>MTOF</dc:creator>
      <dc:date>2011-07-08T15:27:32Z</dc:date>
    </item>
    <item>
      <title>Automate saving of prediction formula using JMP script?</title>
      <link>https://community.jmp.com/t5/Discussions/Automate-saving-of-prediction-formula-using-JMP-script/m-p/3526#M3526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fantastic - thanks much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 15:33:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automate-saving-of-prediction-formula-using-JMP-script/m-p/3526#M3526</guid>
      <dc:creator>dozyme</dc:creator>
      <dc:date>2011-07-08T15:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Automate saving of prediction formula using JMP script?</title>
      <link>https://community.jmp.com/t5/Discussions/Automate-saving-of-prediction-formula-using-JMP-script/m-p/3527#M3527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Any advice would be much appreciated. I'm more familiar with programming in R or STATA, so it's been a process getting used to JSL.&amp;nbsp; Actually, if there are any recommendations for good JSL references (other than the JMP scripting guide, which I find incredibly lacking), that would also be fantastic.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This forum is a great place to learn about JSL.&amp;nbsp; It's not an easy language but it's pretty addicting once you get the hang of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The JMPer Cable newsletters have some good JSL examples.&amp;nbsp; &lt;A href="http://www.jmp.com/about/newsletters/" title="http://www.jmp.com/about/newsletters/"&gt;JMP | JMP Newsletters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The scripting index in JMP 10 has been beefed up considerably with a ton of example code (Help &amp;gt; Scripting Index).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I would recommend going to the JMP conference held in September - great value for the money.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 11:53:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automate-saving-of-prediction-formula-using-JMP-script/m-p/3527#M3527</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2013-06-10T11:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Automate saving of prediction formula using JMP script?</title>
      <link>https://community.jmp.com/t5/Discussions/Automate-saving-of-prediction-formula-using-JMP-script/m-p/3528#M3528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for to save predicted values of a fit model(Stepwise). Do you can help myself ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 12:06:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automate-saving-of-prediction-formula-using-JMP-script/m-p/3528#M3528</guid>
      <dc:creator>astep_</dc:creator>
      <dc:date>2013-06-10T12:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Automate saving of prediction formula using JMP script?</title>
      <link>https://community.jmp.com/t5/Discussions/Automate-saving-of-prediction-formula-using-JMP-script/m-p/36708#M21556</link>
      <description>&lt;P&gt;How would this be modified if a flexible spline fit was to be used&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 14:07:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automate-saving-of-prediction-formula-using-JMP-script/m-p/36708#M21556</guid>
      <dc:creator>mredford</dc:creator>
      <dc:date>2017-03-03T14:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Automate saving of prediction formula using JMP script?</title>
      <link>https://community.jmp.com/t5/Discussions/Automate-saving-of-prediction-formula-using-JMP-script/m-p/36718#M21560</link>
      <description>&lt;P&gt;It is the same method as the previous response&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\semiconductor capability.jmp" );
FM=Fit Model(
	Y( :NPN1 ),
	Effects( :PNP1 &amp;amp; Knotted( 5 ) ),
	Personality( "Standard Least Squares" ),
	Emphasis( "Minimal Report" ),
	Run(
		:NPN1 &amp;lt;&amp;lt; {Summary of Fit( 1 ), Analysis of Variance( 1 ),
		Parameter Estimates( 1 ), Lack of Fit( 0 ), Plot Actual by Predicted( 0 ),
		Plot Residual by Predicted( 0 ), Plot Effect Leverage( 0 )}
	),
	SendToReport(
		Dispatch( {"Response NPN1"}, "Effect Details", OutlineBox, {Close( 0 )} )
	)
);
fm &amp;lt;&amp;lt; prediction formula;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Mar 2017 15:21:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automate-saving-of-prediction-formula-using-JMP-script/m-p/36718#M21560</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-03-03T15:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Automate saving of prediction formula using JMP script?</title>
      <link>https://community.jmp.com/t5/Discussions/Automate-saving-of-prediction-formula-using-JMP-script/m-p/36719#M21561</link>
      <description>&lt;P&gt;Here is a sample script for automation of a Stepwise regression&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\semiconductor capability.jmp" );
fm = Fit Model(
	Y( :NPN1 ),
	Effects(
		:PNP1,
		:PNP2,
		:NPN2,
		:PNP3,
		:IVP1,
		:PNP4,
		:NPN3,
		:IVP2,
		:NPN4,
		:SIT1,
		:INM1,
		:INM2,
		:VPM1,
		:VPM2,
		:VPM3,
		:PMS1,
		:SNM1,
		:SPM1,
		:NPN5,
		:EP2,
		:ZD6,
		:PBA,
		:PLG,
		:CAP
	),
	Personality( "Stepwise" ),
	Run
);
fm &amp;lt;&amp;lt; Finish;
nfm = fm &amp;lt;&amp;lt; run model;
nfm &amp;lt;&amp;lt; prediction formula;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Mar 2017 15:28:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automate-saving-of-prediction-formula-using-JMP-script/m-p/36719#M21561</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-03-03T15:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Automate saving of prediction formula using JMP script?</title>
      <link>https://community.jmp.com/t5/Discussions/Automate-saving-of-prediction-formula-using-JMP-script/m-p/44897#M25679</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can I do the same with Fit Curve instead of Fit Model? Below code gives me nothing:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nl = Fit Curve(
	Y( :Response ),
	X( :Dose ),
	Fit Logistic 4P Hill( ),
);

nl &amp;lt;&amp;lt; prediction formula;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Sep 2017 19:23:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automate-saving-of-prediction-formula-using-JMP-script/m-p/44897#M25679</guid>
      <dc:creator>JPKO</dc:creator>
      <dc:date>2017-09-20T19:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Automate saving of prediction formula using JMP script?</title>
      <link>https://community.jmp.com/t5/Discussions/Automate-saving-of-prediction-formula-using-JMP-script/m-p/44947#M25686</link>
      <description>&lt;P&gt;Because (like some other platforms), 'Fit Curve' allows multiple fits in the same report window, you have to tell JMP which curve you want (even if there is only one):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);
// Sample data
dt = Open("$SAMPLE_DATA/Nonlinear Examples/Chemical Kinetics.jmp");
// Fit a curve with Nonliear
fc = Fit Curve( Y( :Name( "Velocity (y)" ) ), X( :Concentration ), Fit Logistic 4P Hill );
Wait(2);
// The fitted curve is 'Fit[1]': Save the prediction formula
fc &amp;lt;&amp;lt; fit[1](savePredictionFormula);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 09:10:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automate-saving-of-prediction-formula-using-JMP-script/m-p/44947#M25686</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-09-21T09:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Automate saving of prediction formula using JMP script?</title>
      <link>https://community.jmp.com/t5/Discussions/Automate-saving-of-prediction-formula-using-JMP-script/m-p/44972#M25695</link>
      <description>&lt;P&gt;Makes sense, thank you so much!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 14:43:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automate-saving-of-prediction-formula-using-JMP-script/m-p/44972#M25695</guid>
      <dc:creator>JPKO</dc:creator>
      <dc:date>2017-09-21T14:43:59Z</dc:date>
    </item>
  </channel>
</rss>

