<?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: Nonlinear regression using vba automation in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Nonlinear-regression-using-vba-automation/m-p/49979#M28431</link>
    <description>&lt;P&gt;maybe have your VBA script run a JSL script like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
Names Default To Here( 1 );
dt = Open(
	"$SAMPLE_DATA/Nonlinear Examples/US Population.jmp"
);
//dt&amp;lt;&amp;lt;set name("Some Data");
obj = Nonlinear( Y( :pop ), X( :Name( "X-formula" ) ) );
obj &amp;lt;&amp;lt; Newton;
obj &amp;lt;&amp;lt; Finish;
obj &amp;lt;&amp;lt; Prediction Formula;
obj &amp;lt;&amp;lt; Close Window;
Create Excel Workbook(
	"/User/Examples/DATA FROM JMP.xlsx",
	{"Some Data"},
	{"Data From JMP Non-Linear Fit"}
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This saves a JMP table as an Excel Workbook and gives you the flexibility to write a tab name as well as the file name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jan 2018 21:08:26 GMT</pubDate>
    <dc:creator>Byron_JMP</dc:creator>
    <dc:date>2018-01-22T21:08:26Z</dc:date>
    <item>
      <title>Nonlinear regression using vba automation</title>
      <link>https://community.jmp.com/t5/Discussions/Nonlinear-regression-using-vba-automation/m-p/49720#M28288</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have a working JMP script which automatically fits my raw data using a predictor formula&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fit1 = Nonlinear(&lt;BR /&gt;Y( :Name( "-60" ) ),&lt;BR /&gt;X( :Formula ),&lt;BR /&gt;Iteration Limit( 100 ),&lt;BR /&gt;Newton,&lt;BR /&gt;Finish&lt;BR /&gt;);&lt;BR /&gt;fit1 &amp;lt;&amp;lt; Prediction Formula;&lt;BR /&gt;fit1 &amp;lt;&amp;lt; Close Window;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am now trying to automate this side of things from Excel using VBA. Is it possible to automatically run this non linear regression using vba and paste the resulting fitted data back into excel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jan 2018 16:32:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Nonlinear-regression-using-vba-automation/m-p/49720#M28288</guid>
      <dc:creator>rinosaur</dc:creator>
      <dc:date>2018-01-16T16:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Nonlinear regression using vba automation</title>
      <link>https://community.jmp.com/t5/Discussions/Nonlinear-regression-using-vba-automation/m-p/49979#M28431</link>
      <description>&lt;P&gt;maybe have your VBA script run a JSL script like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;
Names Default To Here( 1 );
dt = Open(
	"$SAMPLE_DATA/Nonlinear Examples/US Population.jmp"
);
//dt&amp;lt;&amp;lt;set name("Some Data");
obj = Nonlinear( Y( :pop ), X( :Name( "X-formula" ) ) );
obj &amp;lt;&amp;lt; Newton;
obj &amp;lt;&amp;lt; Finish;
obj &amp;lt;&amp;lt; Prediction Formula;
obj &amp;lt;&amp;lt; Close Window;
Create Excel Workbook(
	"/User/Examples/DATA FROM JMP.xlsx",
	{"Some Data"},
	{"Data From JMP Non-Linear Fit"}
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This saves a JMP table as an Excel Workbook and gives you the flexibility to write a tab name as well as the file name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 21:08:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Nonlinear-regression-using-vba-automation/m-p/49979#M28431</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2018-01-22T21:08:26Z</dc:date>
    </item>
  </channel>
</rss>

