<?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: Basic Scripting - Combining Models (JMP 16) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Basic-Scripting-Combining-Models-JMP-16/m-p/515466#M74217</link>
    <description>&lt;P&gt;Thanks for this Dave, that did the job!&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jun 2022 10:21:46 GMT</pubDate>
    <dc:creator>OliverPickburn</dc:creator>
    <dc:date>2022-06-29T10:21:46Z</dc:date>
    <item>
      <title>Basic Scripting - Combining Models (JMP 16)</title>
      <link>https://community.jmp.com/t5/Discussions/Basic-Scripting-Combining-Models-JMP-16/m-p/515429#M74211</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Hoping someone can help me out with what feels like a fairly basic question on scripts. I have a data table from which I have run a number of models (for various outputs) and saved the models I am happy with as scripts. I now want to combine those models into a single model report and include a profiler showing all outputs (to enable multivariable optimization) Critically I want to retain the model performance info form each model report so cannot just use Save column / Prediction formula/Profiler.&lt;/P&gt;&lt;P&gt;If I simply copy and paste the model scripts together I invariable get a Syntax error (typically Unexpected Fit Model or similar when I run the new script&lt;/P&gt;&lt;P&gt;My JSL scripting knowledge is pretty minimal but this seems like it should be doable I&amp;nbsp; can just get the syntax right.....&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:02:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Basic-Scripting-Combining-Models-JMP-16/m-p/515429#M74211</guid>
      <dc:creator>OliverPickburn</dc:creator>
      <dc:date>2023-06-09T17:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Scripting - Combining Models (JMP 16)</title>
      <link>https://community.jmp.com/t5/Discussions/Basic-Scripting-Combining-Models-JMP-16/m-p/515438#M74213</link>
      <description>&lt;P&gt;Search for &lt;STRONG&gt;Fit Group&lt;/STRONG&gt; in the scripting index.&amp;nbsp; Here is an example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = open("$SAMPLE_DATA/Big Class.jmp");

NewWindow("My Models",
	fg = FitGroup(
		Fit Model(
			Y( :weight ),
			Effects( :age, :sex, :height ),
			Personality( "Standard Least Squares" ),
			Emphasis( "Minimal Report" ),
			Run(
				:weight &amp;lt;&amp;lt; {Summary of Fit( 1 ), Analysis of Variance( 1 ),
				Parameter Estimates( 1 ), Scaled Estimates( 0 ),
				Plot Actual by Predicted( 0 ), Plot Regression( 0 ),
				Plot Residual by Predicted( 0 ), Plot Studentized Residuals( 0 ),
				Plot Effect Leverage( 0 ), Plot Residual by Normal Quantiles( 0 ),
				Box Cox Y Transformation( 0 )}
			)
		), // &amp;lt;--- note the comma
		Fit Model(
			Y( :weight ),
			Effects( :age, :sex, :height, :age * :sex, :age * :height, :sex * :height ),
			Personality( "Standard Least Squares" ),
			Emphasis( "Minimal Report" ),
			Run(
				:weight &amp;lt;&amp;lt; {Summary of Fit( 1 ), Analysis of Variance( 1 ),
				Parameter Estimates( 1 ), Scaled Estimates( 0 ),
				Plot Actual by Predicted( 0 ), Plot Regression( 0 ),
				Plot Residual by Predicted( 0 ), Plot Studentized Residuals( 0 ),
				Plot Effect Leverage( 0 ), Plot Residual by Normal Quantiles( 0 ),
				Box Cox Y Transformation( 0 )}
			)
		);		
	)
);

// turn on the fit group profiler
fg &amp;lt;&amp;lt; profiler(1);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jun 2022 09:44:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Basic-Scripting-Combining-Models-JMP-16/m-p/515438#M74213</guid>
      <dc:creator>David_Burnham</dc:creator>
      <dc:date>2022-06-29T09:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Basic Scripting - Combining Models (JMP 16)</title>
      <link>https://community.jmp.com/t5/Discussions/Basic-Scripting-Combining-Models-JMP-16/m-p/515466#M74217</link>
      <description>&lt;P&gt;Thanks for this Dave, that did the job!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 10:21:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Basic-Scripting-Combining-Models-JMP-16/m-p/515466#M74217</guid>
      <dc:creator>OliverPickburn</dc:creator>
      <dc:date>2022-06-29T10:21:46Z</dc:date>
    </item>
  </channel>
</rss>

