<?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: Prediction Profilier Simulation automation in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Prediction-Profilier-Simulation-automation/m-p/408929#M65866</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6657"&gt;@ih&lt;/a&gt;&amp;nbsp;, this answer is just what I was looking for! I appreciate the comments and thorough code for each of the sections I had described.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My only additional question is how I can set the "Spec Limits" from the simulator in this script as well. Such as this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Use simulation in the profiler to estimate variation in yield at a single point
prf = Profiler(
	Y( :Pred Formula Yield ),
	Profiler(
		1,
		Term Value(
			Aperture( 11.25, Lock( 0 ), Show( 1 ) ),
			Ranging( 10, Lock( 0 ), Show( 1 ) ),
			Cadence( 22.5, Lock( 0 ), Show( 1 ) )
		),
		Simulator(
			1,
			Factors(
				Aperture &amp;lt;&amp;lt; Random( Normal( 11.25, 2 ) ),
				Ranging &amp;lt;&amp;lt; Random( Normal( 10, 1 ) ),
				Cadence &amp;lt;&amp;lt; Random( Normal( 22.5, 4 ) )
			),
			Responses( Pred Formula Yield &amp;lt;&amp;lt; No Noise ),
&lt;FONT color="#FF0000"&gt;            Spec Limits( Pred Formula Yield, LSL(0), USL(2) )     // insert actual Spec Limits Code here&lt;/FONT&gt;		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If I add this code equivalent, the Spec Limits dialog box pops up, but I have been unable to get it populated with various expressions in the "Spec Limits()" call. I have been having trouble finding any documentation for small things like this.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Aug 2021 21:24:01 GMT</pubDate>
    <dc:creator>CerealGuy</dc:creator>
    <dc:date>2021-08-11T21:24:01Z</dc:date>
    <item>
      <title>Prediction Profilier Simulation automation</title>
      <link>https://community.jmp.com/t5/Discussions/Prediction-Profilier-Simulation-automation/m-p/408383#M65831</link>
      <description>&lt;P&gt;Hello All!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Within the Prediction Profiler the user is able to generate PPM values with given prediction formulas, inputs, and spec limits. This can be done by simply hitting the "simulate" button next to the prediction profiler in the profiler GUI setup. At this point, a table will be generated containing the mean, PPM, and Standard Deviation values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am curious: &lt;STRONG&gt;Can this process be automated within a script (or elsewhere in the GUI) to produce multiple PPM values over a set range of values for any of the input variables&lt;/STRONG&gt;. I would use this data to then plot and show the various PPM values vs the given input parameters. As of now, I have not found a way to do this. The only way currently is to simply alter the input value and hit the simulate button again, then manually documenting the output PPM value. This is obviously not a very efficient way to do it, but through my searches online and in these forums I have not found another method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would greatly appreciate any tips to help automate this process! Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 19:54:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Prediction-Profilier-Simulation-automation/m-p/408383#M65831</guid>
      <dc:creator>CerealGuy</dc:creator>
      <dc:date>2023-06-09T19:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Prediction Profilier Simulation automation</title>
      <link>https://community.jmp.com/t5/Discussions/Prediction-Profilier-Simulation-automation/m-p/408527#M65840</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/30539"&gt;@CerealGuy&lt;/a&gt;, welcome to the community!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The simulator in JMP has a tool called simulation experiment which was built for what I believe you are trying to accomplish here.&amp;nbsp; The script below has comments which you should be able to follow, along with some exploration of the simulation menus to find the right commands (look in the red triangle next to Simulation inside the profiler).&amp;nbsp; Is this the path you are looking for?&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);

// Open a sample data set and make a prediction for yield
dt = Open("$Sample_data/Ro.jmp");

fm = Fit Model(
	Y( :Yield ),
	Effects( :Aperture, :Ranging, :Cadence ),
	Personality( "Standard Least Squares" ),
	Emphasis( "Effect Leverage" ),
	Run(
		:Yield &amp;lt;&amp;lt; {Summary of Fit( 1 ), Analysis of Variance( 1 ),
		Parameter Estimates( 1 ), Lack of Fit( 0 ), Scaled Estimates( 0 ),
		Plot Actual by Predicted( 1 ), Plot Regression( 0 ),
		Plot Residual by Predicted( 1 ), Plot Studentized Residuals( 0 ),
		Plot Effect Leverage( 1 ), Plot Residual by Normal Quantiles( 0 ),
		Box Cox Y Transformation( 0 )}
	)
);

fm &amp;lt;&amp;lt; Prediction Formula;

// Use simulation in the profiler to estimate variation in yield at a single point
prf = Profiler(
	Y( :Pred Formula Yield ),
	Profiler(
		1,
		Term Value(
			Aperture( 11.25, Lock( 0 ), Show( 1 ) ),
			Ranging( 10, Lock( 0 ), Show( 1 ) ),
			Cadence( 22.5, Lock( 0 ), Show( 1 ) )
		),
		Simulator(
			1,
			Factors(
				Aperture &amp;lt;&amp;lt; Random( Normal( 11.25, 2 ) ),
				Ranging &amp;lt;&amp;lt; Random( Normal( 10, 1 ) ),
				Cadence &amp;lt;&amp;lt; Random( Normal( 22.5, 4 ) )
			),
			Responses( Pred Formula Yield &amp;lt;&amp;lt; No Noise )
		)
	)
);

// Do a simulation experiment to calculation variation in yield for 
// different levels of your inputs.  Note that you might need to
// adjust the ranges for different variables before this step using
// 'resent factor grid' to ensure you explore the relevant space.
dtSim = prf &amp;lt;&amp;lt; Simulator( Simulation Experiment( 512, 1 ) );
dtSim &amp;lt;&amp;lt; New Column( "Lowest Yield Expected",
	Numeric,
	"Continuous",
	Format( "Best", 12 ),
	Formula( :Pred Formula Yield Mean - 3 * :Pred Formula Yield SD )
);

// Graph results
dtSim &amp;lt;&amp;lt; Graph Builder(
	Size( 558, 552 ),
	Show Control Panel( 0 ),
	Variables(
		X( :Aperture ),
		Y( :Ranging ),
		Wrap( :Cadence, Levels( 9 ) ),
		Color( :Lowest Yield Expected )
	),
	Elements( Contour( X, Y, Legend( 9 ) ) )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ih_0-1628634711441.png" style="width: 640px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/34902i43B98E1DD00F640A/image-dimensions/640x469?v=v2" width="640" height="469" role="button" title="ih_0-1628634711441.png" alt="ih_0-1628634711441.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 22:33:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Prediction-Profilier-Simulation-automation/m-p/408527#M65840</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2021-08-10T22:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Prediction Profilier Simulation automation</title>
      <link>https://community.jmp.com/t5/Discussions/Prediction-Profilier-Simulation-automation/m-p/408929#M65866</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6657"&gt;@ih&lt;/a&gt;&amp;nbsp;, this answer is just what I was looking for! I appreciate the comments and thorough code for each of the sections I had described.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My only additional question is how I can set the "Spec Limits" from the simulator in this script as well. Such as this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;// Use simulation in the profiler to estimate variation in yield at a single point
prf = Profiler(
	Y( :Pred Formula Yield ),
	Profiler(
		1,
		Term Value(
			Aperture( 11.25, Lock( 0 ), Show( 1 ) ),
			Ranging( 10, Lock( 0 ), Show( 1 ) ),
			Cadence( 22.5, Lock( 0 ), Show( 1 ) )
		),
		Simulator(
			1,
			Factors(
				Aperture &amp;lt;&amp;lt; Random( Normal( 11.25, 2 ) ),
				Ranging &amp;lt;&amp;lt; Random( Normal( 10, 1 ) ),
				Cadence &amp;lt;&amp;lt; Random( Normal( 22.5, 4 ) )
			),
			Responses( Pred Formula Yield &amp;lt;&amp;lt; No Noise ),
&lt;FONT color="#FF0000"&gt;            Spec Limits( Pred Formula Yield, LSL(0), USL(2) )     // insert actual Spec Limits Code here&lt;/FONT&gt;		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If I add this code equivalent, the Spec Limits dialog box pops up, but I have been unable to get it populated with various expressions in the "Spec Limits()" call. I have been having trouble finding any documentation for small things like this.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 21:24:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Prediction-Profilier-Simulation-automation/m-p/408929#M65866</guid>
      <dc:creator>CerealGuy</dc:creator>
      <dc:date>2021-08-11T21:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Prediction Profilier Simulation automation</title>
      <link>https://community.jmp.com/t5/Discussions/Prediction-Profilier-Simulation-automation/m-p/409393#M65918</link>
      <description>&lt;P&gt;Try 'Help &amp;gt; Scripting Index' and search for 'Simulator':&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-08-13 at 12.41.32.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/34992iE7507E7AF14A170E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-08-13 at 12.41.32.png" alt="Screenshot 2021-08-13 at 12.41.32.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;These examples should help.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 11:43:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Prediction-Profilier-Simulation-automation/m-p/409393#M65918</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2021-08-13T11:43:44Z</dc:date>
    </item>
  </channel>
</rss>

