<?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: How to use JSL to combine several DoE models into one fit group? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-combine-several-DoE-models-into-one-fit-group/m-p/631788#M83014</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/40915"&gt;@lazzybug&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I'm facing a similar problem as you do. I also want to change models, were a block effect was included, to a mixed model from code. Could you provide a minimal example how you achieved this? That would be great!&lt;/P&gt;&lt;P&gt;I also wondered how to loop through a "Fit Group" to access models individually and use the individual models to extract e.g. predictions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 May 2023 09:03:55 GMT</pubDate>
    <dc:creator>Anja_W</dc:creator>
    <dc:date>2023-05-15T09:03:55Z</dc:date>
    <item>
      <title>How to use JSL to combine several DoE models into one fit group?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-combine-several-DoE-models-into-one-fit-group/m-p/622367#M82137</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/1654"&gt;@yuichi_katsumur&lt;/a&gt;&lt;/P&gt;&lt;P&gt;I have more than 10 individual DoE model in one data table which was generated with stepwise automatically. Next, I want to use JSL to open each DoE model and copy its script inside "fit group( )", followed by ",", so that I can have a combined model. The final format will look like example below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fit group(&lt;/P&gt;&lt;P&gt;model 1,&lt;/P&gt;&lt;P&gt;model 2,&lt;/P&gt;&lt;P&gt;model 3,&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;model 1 = fit model ()&lt;/P&gt;&lt;P&gt;model 2 = fit model ()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW: Is it possible to get the model effect from DoE script? I also need to change my model to REML if Random Effect of Block is in the effect. Actually I can figure this out if I know how to edit the script with JSL. Thank you so much so much for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I actually made some code below already, the only help I need is to remove "\!", and replace the " in the beginning and end from finalmodel variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Names Default To Here( 1 );&lt;BR /&gt;dt = Current Data Table();&lt;BR /&gt;jslList = dt &amp;lt;&amp;lt; Get Table Script Names;&lt;BR /&gt;print (N Items(jslList));&lt;BR /&gt;winList = {};&lt;BR /&gt;dott = ",";&lt;BR /&gt;modeltext = "";&lt;BR /&gt;for (i=1, i&amp;lt;=N Items(jslList),i++,&lt;BR /&gt;runjsl = dt &amp;lt;&amp;lt; Run Script(jslList[i]);&lt;BR /&gt;rbiv = runjsl &amp;lt;&amp;lt; Report;&lt;BR /&gt;rbiv &amp;lt;&amp;lt; ShowWindow( 1 );&lt;BR /&gt;fitobj = rbiv[outlinebox(1)]&amp;lt;&amp;lt;get scriptable object;&lt;BR /&gt;fmscript=char(fitobj&amp;lt;&amp;lt;get script);&lt;BR /&gt;modeltext = modeltext || fmscript || dott;&lt;BR /&gt;//print(fmscript);&lt;BR /&gt;Insert Into(winList, rbiv);&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;for (i=1, i&amp;lt;=N Items(winList), i++,&lt;BR /&gt;winList[i] &amp;lt;&amp;lt; Close Window();&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;finalmodel = "Fit Group (" || modeltext || ")";&lt;BR /&gt;/*finalmodel = Substitute(finalmodel, "\!", "");*/&lt;BR /&gt;print (finalmodel);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 00:00:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-combine-several-DoE-models-into-one-fit-group/m-p/622367#M82137</guid>
      <dc:creator>lazzybug</dc:creator>
      <dc:date>2023-06-11T00:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL to combine several DoE models into one fit group?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-combine-several-DoE-models-into-one-fit-group/m-p/622435#M82138</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/40915"&gt;@lazzybug&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;To remove "\!" you can use parse().&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;eval (parse(finalmodel));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want to run the model in the Fit Group, you need a &amp;lt;&amp;lt; run() message.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;fmscript=char(fitobj&amp;lt;&amp;lt;get script);
InsertInto(fmScript, Expr("&amp;lt;&amp;lt;Run"));	
modeltext = modeltext || fmscript || dott;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 01:40:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-combine-several-DoE-models-into-one-fit-group/m-p/622435#M82138</guid>
      <dc:creator>yuichi_katsumur</dc:creator>
      <dc:date>2023-04-14T01:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL to combine several DoE models into one fit group?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-combine-several-DoE-models-into-one-fit-group/m-p/631788#M83014</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/40915"&gt;@lazzybug&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I'm facing a similar problem as you do. I also want to change models, were a block effect was included, to a mixed model from code. Could you provide a minimal example how you achieved this? That would be great!&lt;/P&gt;&lt;P&gt;I also wondered how to loop through a "Fit Group" to access models individually and use the individual models to extract e.g. predictions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 09:03:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-combine-several-DoE-models-into-one-fit-group/m-p/631788#M83014</guid>
      <dc:creator>Anja_W</dc:creator>
      <dc:date>2023-05-15T09:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use JSL to combine several DoE models into one fit group?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-combine-several-DoE-models-into-one-fit-group/m-p/634631#M83264</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/43914"&gt;@Anja_W&lt;/a&gt;, it's too complicated to do it. I suggested to reach out JMP experts to solve your problem. Good luck!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 22:00:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-JSL-to-combine-several-DoE-models-into-one-fit-group/m-p/634631#M83264</guid>
      <dc:creator>lazzybug</dc:creator>
      <dc:date>2023-05-23T22:00:59Z</dc:date>
    </item>
  </channel>
</rss>

