<?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: Is there an easy way to script the Fit Model Macros? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Is-there-an-easy-way-to-script-the-Fit-Model-Macros/m-p/589129#M79406</link>
    <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2781"&gt;@peng_liu&lt;/a&gt;, are these commands new in JMP 17? I have the exact same question as Vince, but they don't seem to work in JMP 16.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Response Surface()&lt;/LI&gt;&lt;LI&gt;FactorialtoDegree()&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Thu, 12 Jan 2023 00:32:29 GMT</pubDate>
    <dc:creator>StarfruitBob</dc:creator>
    <dc:date>2023-01-12T00:32:29Z</dc:date>
    <item>
      <title>Is there an easy way to script the Fit Model Macros?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-an-easy-way-to-script-the-Fit-Model-Macros/m-p/469225#M71300</link>
      <description>&lt;P&gt;I can't believe I've never asked this before, but does anyone know if I can give a script just what macro to run on what I have selected?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Like say I want to do response surface on "Age" and "weight"&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\Big Class.jmp");

dt &amp;lt;&amp;lt; Clear Column Selection();
dt &amp;lt;&amp;lt; Select Columns({"weight", "age"});

fm = dt &amp;lt;&amp;lt; Fit Model(Y(:height), 
	// do something involving Response Surface
);

// So that the final report looks the same as.

fm_real = dt &amp;lt;&amp;lt; Fit Model(
	Y( :height ),
	Effects( :age, :weight &amp;amp; RS, :age * :weight, :weight * :weight ),
	Personality( "Standard Least Squares" ),
	Emphasis( "Effect Leverage" ),
	Run()
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I built a bunch of helper functions to do this previously and I really don't want to have to build them again.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:12:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-an-easy-way-to-script-the-Fit-Model-Macros/m-p/469225#M71300</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2023-06-09T18:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an easy way to script the Fit Model Macros?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-an-easy-way-to-script-the-Fit-Model-Macros/m-p/469289#M71304</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here( 1 );
dt = open("$SAMPLE_DATA\Big Class.jmp");
dialog = dt &amp;lt;&amp;lt; Fit Model(
	Personality( "Standard Least Squares" ),
	Emphasis( "Effect Leverage" ),
);
dialog &amp;lt;&amp;lt; Y( :height );
dialog &amp;lt;&amp;lt; Effects(Response Surface(:weight, :age));
dialog &amp;lt;&amp;lt; Run();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2022 04:02:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-an-easy-way-to-script-the-Fit-Model-Macros/m-p/469289#M71304</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2022-03-12T04:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an easy way to script the Fit Model Macros?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-an-easy-way-to-script-the-Fit-Model-Macros/m-p/469545#M71349</link>
      <description>&lt;P&gt;Amazing. Is there any documentation on this?&amp;nbsp; It's not in the scripting guide or index.&amp;nbsp; Can I do factorial to degree X?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;*Edit* I figured it out.&amp;nbsp; Seems like it's just the exact wording of the macro.&amp;nbsp;&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\Big Class.jmp");
dialog = dt &amp;lt;&amp;lt; Fit Model(
	Personality( "Standard Least Squares" ),
	Emphasis( "Effect Leverage" ),	
);
dialog &amp;lt;&amp;lt; Y( :height );
dialog &amp;lt;&amp;lt; Effects(FactorialtoDegree(2, :weight, :age));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/19176"&gt;@ben_ph&lt;/a&gt;&amp;nbsp;this might be useful to you too.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 16:53:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-an-easy-way-to-script-the-Fit-Model-Macros/m-p/469545#M71349</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2022-03-14T16:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an easy way to script the Fit Model Macros?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-an-easy-way-to-script-the-Fit-Model-Macros/m-p/469829#M71383</link>
      <description>&lt;P&gt;I have added its OSI documentation to JMP17. You should be able to find it under OSI &amp;gt; Objects &amp;gt; Fit Model &amp;gt; Model Dialog &amp;gt; Item Messages &amp;gt; Effects.&lt;/P&gt;
&lt;P&gt;For FactorialToDegree and also PolynomialToDegree, what you did is not what you think it is. The arguments in side of the Macro names are interpreted as columns. So in your example, the number 2 is interpreted as the second column, which is :age. And FactorialToDegree and PolynomialToDegree will refer to the value in the Degree number edit box as the value for degree.&lt;/P&gt;
&lt;P&gt;In JMP 16 and previous versions, you may have to go through display box scripting to change that. E.g.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here( 1 );
dt = open("$SAMPLE_DATA\Big Class.jmp");
dialog = dt &amp;lt;&amp;lt; Fit Model(
	Personality( "Standard Least Squares" ),
	Emphasis( "Effect Leverage" ),	
);
report(dialog)[NumberEditBox(1)] &amp;lt;&amp;lt; set (3);
dialog &amp;lt;&amp;lt; Effects(FactorialtoDegree(:height, :weight, :age));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I made small improvement in JMP17. You will see it in the Effects OSI item when you have JMP17.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 14:34:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-an-easy-way-to-script-the-Fit-Model-Macros/m-p/469829#M71383</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2022-03-15T14:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an easy way to script the Fit Model Macros?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-an-easy-way-to-script-the-Fit-Model-Macros/m-p/589129#M79406</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2781"&gt;@peng_liu&lt;/a&gt;, are these commands new in JMP 17? I have the exact same question as Vince, but they don't seem to work in JMP 16.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Response Surface()&lt;/LI&gt;&lt;LI&gt;FactorialtoDegree()&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 12 Jan 2023 00:32:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-an-easy-way-to-script-the-Fit-Model-Macros/m-p/589129#M79406</guid>
      <dc:creator>StarfruitBob</dc:creator>
      <dc:date>2023-01-12T00:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an easy way to script the Fit Model Macros?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-an-easy-way-to-script-the-Fit-Model-Macros/m-p/589137#M79408</link>
      <description>&lt;P&gt;These? They are in 17.&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="peng_liu_0-1673487998384.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49002i1A0E8292F10C6975/image-size/large?v=v2&amp;amp;px=999" role="button" title="peng_liu_0-1673487998384.png" alt="peng_liu_0-1673487998384.png" /&gt;&lt;/span&gt;&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="peng_liu_1-1673488032611.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49003i56398FF32796D63E/image-size/large?v=v2&amp;amp;px=999" role="button" title="peng_liu_1-1673488032611.png" alt="peng_liu_1-1673488032611.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 01:47:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-an-easy-way-to-script-the-Fit-Model-Macros/m-p/589137#M79408</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2023-01-12T01:47:42Z</dc:date>
    </item>
  </channel>
</rss>

