<?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 JSL Code for Replace with Transform in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-Code-for-Replace-with-Transform/m-p/899470#M105939</link>
    <description>&lt;P&gt;Hi All&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I looking for the JSL code to get the "Fit Model" platform to Box Cox transform data automatically by using the "Replace with Transform" or "Refit&amp;nbsp;with Transform"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jakob_0-1757489275324.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/82201iFCA813A75B1AE535/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jakob_0-1757489275324.png" alt="Jakob_0-1757489275324.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for all your help&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Jakob&lt;/P&gt;</description>
    <pubDate>Wed, 10 Sep 2025 07:29:38 GMT</pubDate>
    <dc:creator>Jakob</dc:creator>
    <dc:date>2025-09-10T07:29:38Z</dc:date>
    <item>
      <title>JSL Code for Replace with Transform</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Code-for-Replace-with-Transform/m-p/899470#M105939</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I looking for the JSL code to get the "Fit Model" platform to Box Cox transform data automatically by using the "Replace with Transform" or "Refit&amp;nbsp;with Transform"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jakob_0-1757489275324.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/82201iFCA813A75B1AE535/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jakob_0-1757489275324.png" alt="Jakob_0-1757489275324.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for all your help&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Jakob&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 07:29:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Code-for-Replace-with-Transform/m-p/899470#M105939</guid>
      <dc:creator>Jakob</dc:creator>
      <dc:date>2025-09-10T07:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Code for Replace with Transform</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Code-for-Replace-with-Transform/m-p/899481#M105940</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/8656"&gt;@Jakob&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Had to slightly alter the example from the Scripting Index, but this should work (just need the 'Refit' line in to prompt it to run):&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/Tiretread.jmp" );
obj = dt &amp;lt;&amp;lt; Fit Model(
	Y( :ABRASION ),
	Effects( :SILICA, :SILANE, :SULFUR ),
	Personality( "Standard Least Squares" ),
	Emphasis( "Minimal Report" ),
	Run
);
Wait( 1 );
obj &amp;lt;&amp;lt; Box Cox Y Transformation(
	1,
	Refit with Transform( 1 )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Ben&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 07:54:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Code-for-Replace-with-Transform/m-p/899481#M105940</guid>
      <dc:creator>Ben_BarrIngh</dc:creator>
      <dc:date>2025-09-10T07:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Code for Replace with Transform</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Code-for-Replace-with-Transform/m-p/899547#M105949</link>
      <description>&lt;P&gt;Hi Ben&lt;/P&gt;
&lt;P&gt;Thanks for your help,&lt;/P&gt;
&lt;P&gt;I have tried to use the solution, but I get a different results in my exported columns when using manual approach and the scripted version:&lt;/P&gt;
&lt;P&gt;Can the reason be that I call the first fit model window ?&lt;BR /&gt;Regards&lt;/P&gt;
&lt;P&gt;Jakob&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Tiretread.jmp" );
obj = dt &amp;lt;&amp;lt; Fit Model(
	Y( :ABRASION ),
	Effects(  :MODULUS, :ELONG, :HARDNESS, :SILICA, :SILANE, :SULFUR ),
	Personality( "Standard Least Squares" ),
					Emphasis( "Effect Screening" ),
					Run(
						&amp;lt;&amp;lt;{Summary of Fit( 0 ), Analysis of Variance( 0 ), Parameter Estimates( 0 ), Effect Tests( 0 ), Effect Details( 0 ),
						Lack of Fit( 0 ), Expanded  Estimates( 0 ), Sorted Estimates( 0 ), Plot Actual by Predicted( 0 ), Plot Regression( 0 ),
						Plot Residual by Predicted( 0 ), Plot Studentized Residuals( 1 ), Plot Effect Leverage( 0 ),
						Plot Residual by Normal Quantiles( 0 ), Show All Confidence Intervals( 0 ), Show Sqrt Variance Component( 1 ),
						Box Cox Y Transformation( 1 ), Scaled Estimates( 0 ), Profiler( 0 )},
						FDR( 0 ),
						),
						SendToReport(
		Dispatch( {}, "Box-Cox Transformations", OutlineBox, {Close( 0 )} )
	)
);
		obj &amp;lt;&amp;lt; Predicted Values;
		obj &amp;lt;&amp;lt; Std Error of Individual;
		

Wait( 1 );
obj &amp;lt;&amp;lt; Box Cox Y Transformation(1,Refit with Transform(1));
Wait( 3 );
		obj &amp;lt;&amp;lt; Predicted Values;
		obj &amp;lt;&amp;lt; Std Error of Individual;
	&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 14:03:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Code-for-Replace-with-Transform/m-p/899547#M105949</guid>
      <dc:creator>Jakob</dc:creator>
      <dc:date>2025-09-10T14:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Code for Replace with Transform</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Code-for-Replace-with-Transform/m-p/899565#M105950</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/8656"&gt;@Jakob&lt;/a&gt;, what lambda value do you use when running manually? that might be where the difference is. Change the value on 'Refit with Transform (1)' to whatever lambda value is used. i.e.,&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;obj &amp;lt;&amp;lt; Box Cox Y Transformation(1,Refit with Transform(0.95));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Sep 2025 15:00:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Code-for-Replace-with-Transform/m-p/899565#M105950</guid>
      <dc:creator>Ben_BarrIngh</dc:creator>
      <dc:date>2025-09-10T15:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: JSL Code for Replace with Transform</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Code-for-Replace-with-Transform/m-p/899966#M106002</link>
      <description>&lt;P&gt;Hi Ben&amp;nbsp;&lt;BR /&gt;Thank you so much for the help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Jakob&lt;/P&gt;</description>
      <pubDate>Fri, 12 Sep 2025 09:14:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Code-for-Replace-with-Transform/m-p/899966#M106002</guid>
      <dc:creator>Jakob</dc:creator>
      <dc:date>2025-09-12T09:14:52Z</dc:date>
    </item>
  </channel>
</rss>

