<?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: Categorical Factor, Controlling probability by script in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Categorical-Factor-Controlling-probability-by-script/m-p/892028#M105300</link>
    <description>Hi thanks for the fast reply. &lt;BR /&gt;&lt;BR /&gt;I was curious how I could control the probability of factor Process variation. &lt;BR /&gt;this have 3 discrete value fast, normal, slow. &lt;BR /&gt;I want to simulate it with specific probability with script. &lt;BR /&gt;&lt;BR /&gt;however with below syntax. It does not work. &lt;BR /&gt;Can I Get help for the right syntax? I cannot find any regarding function for it &lt;BR /&gt;&lt;BR /&gt;Process Variation &amp;lt;&amp;lt; Distribution( {"Fast", "Slow", "Normal"}, [0.33, 0.33, 0.34] )</description>
    <pubDate>Sat, 02 Aug 2025 08:44:01 GMT</pubDate>
    <dc:creator>GeneratingRank7</dc:creator>
    <dc:date>2025-08-02T08:44:01Z</dc:date>
    <item>
      <title>Categorical Factor, Controlling probability by script</title>
      <link>https://community.jmp.com/t5/Discussions/Categorical-Factor-Controlling-probability-by-script/m-p/892015#M105298</link>
      <description>&lt;P&gt;I am tring to make automation code to control the nominal values by the script.&lt;BR /&gt;&lt;BR /&gt;For the simulator, I want to set the probability of the values. However, it doesnt seem to work.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;How can I control categorized values probability with the script ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;prf = Profiler(
    Y( :Pred Formula Eye Height, :Pred Formula Eye Width ),
    Profiler(
        1,
        Term Value(
            Duty Cycle(0.48, Lock( 0 ), Show( 1 )),
			Random Jitter(0.04, Lock( 0 ), Show( 1 )),
			Deterministic Jitter(0, Lock( 0 ), Show( 1 )),
			Process Variation("Normal", Lock( 0 ), Show( 1 )),
			Temperature(11.25, Lock( 0 ), Show( 1 )),
			Voltage(1.0, Lock( 0 ), Show( 1 ))
        ),
        Simulator(
            1,
            Factors(
                Duty Cycle &amp;lt;&amp;lt; Random( Normal( 0.48, 0.08 ) ),
				Random Jitter &amp;lt;&amp;lt; Random( Normal( 0.04, 0.05 ) ),
				Deterministic Jitter &amp;lt;&amp;lt; Random( Normal( 0, 0 ) ),
				&lt;FONT face="arial black,avant garde"&gt;Process Variation &amp;lt;&amp;lt; Distribution( {"Fast", "Slow", "Normal"}, [0.33, 0.33, 0.34] )&lt;/FONT&gt;,
				Temperature &amp;lt;&amp;lt; Random( Normal( 11.25, 2 ) ),
				Voltage &amp;lt;&amp;lt; Random( Normal( 1.0, 0.05 ) )
            ),
            Responses( 
                Pred Formula Eye Height &amp;lt;&amp;lt; No Noise,
				Pred Formula Eye Width &amp;lt;&amp;lt; No Noise
            )
        )
    )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 02 Aug 2025 07:58:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Categorical-Factor-Controlling-probability-by-script/m-p/892015#M105298</guid>
      <dc:creator>GeneratingRank7</dc:creator>
      <dc:date>2025-08-02T07:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical Factor, Controlling probability by script</title>
      <link>https://community.jmp.com/t5/Discussions/Categorical-Factor-Controlling-probability-by-script/m-p/892026#M105299</link>
      <description>&lt;P&gt;Could the issue be that you have &lt;STRONG&gt;Profiler&lt;/STRONG&gt; twice? This is an example from Scripting Index which seems to send the Simulator after Profiler has been created&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 = Profiler(
	Y(
		:Pred Formula ABRASION, :Pred Formula MODULUS, :Pred Formula ELONG,
		:Pred Formula HARDNESS
	)
);
obj &amp;lt;&amp;lt; Simulator(
	1,
	Factors(
		SILICA &amp;lt;&amp;lt; Random(Normal(1.25, 0.3266)),
		SILANE &amp;lt;&amp;lt; Random(Normal weighted(50, 6.532)), SULFUR &amp;lt;&amp;lt; Fixed(2.25)
	),
	Responses(
		Pred Formula ABRASION &amp;lt;&amp;lt; No Noise, Pred Formula MODULUS &amp;lt;&amp;lt; No Noise,
		Pred Formula ELONG &amp;lt;&amp;lt; No Noise, Pred Formula HARDNESS &amp;lt;&amp;lt; No Noise
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But I would guess you could just move it inside the Profiler message&lt;/P&gt;
&lt;P&gt;&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/Tiretread.jmp");
obj = Profiler(
	Y(
		:Pred Formula ABRASION, :Pred Formula MODULUS, :Pred Formula ELONG,
		:Pred Formula HARDNESS
	),
	Term Value(
		SILICA(1.75, Lock(0), Show(1)),
		SILANE(45.2, Lock(0), Show(1)),
		SULFUR(2.45, Lock(0), Show(1))
	),
	Simulator(
		1,
		Factors(
			SILICA &amp;lt;&amp;lt; Random(Normal(1.25, 0.3266)),
			SILANE &amp;lt;&amp;lt; Random(Normal weighted(50, 6.532)), SULFUR &amp;lt;&amp;lt; Fixed(2.25)
		),
		Responses(
			Pred Formula ABRASION &amp;lt;&amp;lt; No Noise, Pred Formula MODULUS &amp;lt;&amp;lt; No Noise,
			Pred Formula ELONG &amp;lt;&amp;lt; No Noise, Pred Formula HARDNESS &amp;lt;&amp;lt; No Noise
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Aug 2025 08:31:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Categorical-Factor-Controlling-probability-by-script/m-p/892026#M105299</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-08-02T08:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical Factor, Controlling probability by script</title>
      <link>https://community.jmp.com/t5/Discussions/Categorical-Factor-Controlling-probability-by-script/m-p/892028#M105300</link>
      <description>Hi thanks for the fast reply. &lt;BR /&gt;&lt;BR /&gt;I was curious how I could control the probability of factor Process variation. &lt;BR /&gt;this have 3 discrete value fast, normal, slow. &lt;BR /&gt;I want to simulate it with specific probability with script. &lt;BR /&gt;&lt;BR /&gt;however with below syntax. It does not work. &lt;BR /&gt;Can I Get help for the right syntax? I cannot find any regarding function for it &lt;BR /&gt;&lt;BR /&gt;Process Variation &amp;lt;&amp;lt; Distribution( {"Fast", "Slow", "Normal"}, [0.33, 0.33, 0.34] )</description>
      <pubDate>Sat, 02 Aug 2025 08:44:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Categorical-Factor-Controlling-probability-by-script/m-p/892028#M105300</guid>
      <dc:creator>GeneratingRank7</dc:creator>
      <dc:date>2025-08-02T08:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical Factor, Controlling probability by script</title>
      <link>https://community.jmp.com/t5/Discussions/Categorical-Factor-Controlling-probability-by-script/m-p/892035#M105301</link>
      <description>&lt;P&gt;Have you done it in JMP interface and then saved the script? It should have the correct syntax for you to use&lt;/P&gt;</description>
      <pubDate>Sat, 02 Aug 2025 11:47:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Categorical-Factor-Controlling-probability-by-script/m-p/892035#M105301</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2025-08-02T11:47:21Z</dc:date>
    </item>
  </channel>
</rss>

