<?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: Scripting &amp;quot;make into combined data table&amp;quot; of Fit Life By X with multiple groups in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Scripting-quot-make-into-combined-data-table-quot-of-Fit-Life-By/m-p/724568#M90739</link>
    <description>&lt;P&gt;I tried the following but it is giving me "object not scriptable..." errors&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = currentdatatable();
dt&amp;lt;&amp;lt;New Column( "d", character, formula("d"));
dt_name = dt&amp;lt;&amp;lt;get name;
// Append "_cleaned" to the name of the data table to create the filename
filename = Char(dt_name) || "_Fit Life By X";

MyWindow = New Window( filename, VertListBox = V List Box() );

rpt=VertListBox &amp;lt;&amp;lt; append(
 Fit Life by X(
	Distribution( Weibull ),
	Nested Model Tests( Location and Scale ),
	Y( :Name("Left"), :Name("Right") ),
	X( :d ),
	By(:Name ,:Location,:Street,:Apt,:Number),
	Where(:Number==1),
	&amp;lt;&amp;lt;Fit Weibull,
	Use Transformation Scale( 0 ),
	Show Overlay by Levels( 1 ),
	&amp;lt;&amp;lt;Set Scale( Weibull, Simultaneous ),
	&amp;lt;&amp;lt;Set Scriptables(
		{Distribution Comparisons(
			Profiler(
				1,
				Confidence Intervals( 1 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					Left( 507.3, Lock( 0 ), Show( 1 ) )
				)
			)
		), Quantile Comparisons(
			Profiler(
				1,
				Confidence Intervals( 1 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					Probability( 0.5, Lock( 0 ), Show( 1 ) )
				)
			)
		), Hazard Comparisons(
			Profiler(
				1,
				Confidence Intervals( 0 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					Left( 507.3, Lock( 0 ), Show( 1 ) )
				)
			)
		), Density Comparisons(
			Profiler(
				1,
				Confidence Intervals( 0 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					Left( 507.3, Lock( 0 ), Show( 1 ) )
				)
			)
		), Weibull Distribution(
			Profiler(
				1,
				Confidence Intervals( 1 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					Left( 507.273412168479, Lock( 0 ), Show( 1 ) )
				)
			)
		), Weibull Quantile(
			Profiler(
				1,
				Confidence Intervals( 1 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					Probability( 0.5, Lock( 0 ), Show( 1 ) )
				)
			)
		), Weibull Hazard(
			Profiler(
				1,
				Confidence Intervals( 0 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					Left( 507.273412168479, Lock( 0 ), Show( 1 ) )
				)
			)
		), Weibull Density(
			Profiler(
				1,
				Confidence Intervals( 0 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					Left( 507.273412168479, Lock( 0 ), Show( 1 ) )
				)
			)
		), Scatter Plot Show Distribution(
			Weibull( 0 ),
			Lognormal( 0 ),
			Loglogistic( 0 ),
			Frechet( 0 ),
			Exponential( 0 ),
			SEV( 0 ),
			Normal( 0 ),
			Logistic( 0 ),
			LEV( 0 )
		)}
	),
	Confidence Interval Method( Likelihood ),
	SendToReport(
		Dispatch( {"Scatterplot"}, "2", ScaleBox, {Format( "Scientific", 10 )} ),
		Dispatch(
			{"Nonparametric Overlay"},
			"1",
			ScaleBox,
			{Format( "Scientific", 10 )}
		)
	)
));

dt_weibull = Report(rpt)[Outline Box("Weibull Results"), Outline Box("Statistics"), Outline Box("Estimates"), Table Box(1)] &amp;lt;&amp;lt; Make Combined Data Table;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;any idea what might be wrong?&lt;/P&gt;</description>
    <pubDate>Sat, 17 Feb 2024 00:56:36 GMT</pubDate>
    <dc:creator>FrequencyBison9</dc:creator>
    <dc:date>2024-02-17T00:56:36Z</dc:date>
    <item>
      <title>Scripting "make into combined data table" of Fit Life By X with multiple groups</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-quot-make-into-combined-data-table-quot-of-Fit-Life-By/m-p/723015#M90523</link>
      <description>&lt;P&gt;I am trying to build a generic script for Fit Life By X and make into combined data table", as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;flx = Fit Life by X(
	Distribution( Weibull ),
	Nested Model Tests( Location and Scale ),
	Y( :Name("Left"), :Name("Right") ),
	X( :d ),
	By(:Name ,:Location,:Street,:Apt,:Number),
	&amp;lt;&amp;lt;Fit Weibull,
	Use Transformation Scale( 0 ),
	Show Overlay by Levels( 1 ),
	&amp;lt;&amp;lt;Set Scale( Weibull, Simultaneous ),
	&amp;lt;&amp;lt;Set Scriptables(
		{Distribution Comparisons(
			Profiler(
				1,
				Confidence Intervals( 1 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					TTF Left( 507.3, Lock( 0 ), Show( 1 ) )
				)
			)
		), Quantile Comparisons(
			Profiler(
				1,
				Confidence Intervals( 1 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					Probability( 0.5, Lock( 0 ), Show( 1 ) )
				)
			)
		), Hazard Comparisons(
			Profiler(
				1,
				Confidence Intervals( 0 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					TTF Left( 507.3, Lock( 0 ), Show( 1 ) )
				)
			)
		), Density Comparisons(
			Profiler(
				1,
				Confidence Intervals( 0 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					TTF Left( 507.3, Lock( 0 ), Show( 1 ) )
				)
			)
		), Weibull Distribution(
			Profiler(
				1,
				Confidence Intervals( 1 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					TTF Left( 507.273412168479, Lock( 0 ), Show( 1 ) )
				)
			)
		), Weibull Quantile(
			Profiler(
				1,
				Confidence Intervals( 1 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					Probability( 0.5, Lock( 0 ), Show( 1 ) )
				)
			)
		), Weibull Hazard(
			Profiler(
				1,
				Confidence Intervals( 0 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					TTF Left( 507.273412168479, Lock( 0 ), Show( 1 ) )
				)
			)
		), Weibull Density(
			Profiler(
				1,
				Confidence Intervals( 0 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					TTF Left( 507.273412168479, Lock( 0 ), Show( 1 ) )
				)
			)
		), Scatter Plot Show Distribution(
			Weibull( 0 ),
			Lognormal( 0 ),
			Loglogistic( 0 ),
			Frechet( 0 ),
			Exponential( 0 ),
			SEV( 0 ),
			Normal( 0 ),
			Logistic( 0 ),
			LEV( 0 )
		)}
	),
	Confidence Interval Method( Likelihood ),
	SendToReport(
		Dispatch( {"Scatterplot"}, "2", ScaleBox, {Format( "Scientific", 10 )} ),
		Dispatch(
			{"Nonparametric Overlay"},
			"1",
			ScaleBox,
			{Format( "Scientific", 10 )}
		)
	)
);
Wait( 0 );
flx["Fit Life by X - TTF Left BY Discrete (d) Location and Scale  Name=ABC ,Location=XYZ,Street=123,Apt=A12,Number=5099",
	"Results", "Weibull Results", Tab Page Box( 1 ), "Statistics", "Estimates", Table Box( 1 )] &amp;lt;&amp;lt; Make Combined Data Table;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This generic script will be applied to multiple different data table where the values of all "By" columns will change which makes the line with "....&amp;lt;&amp;lt;&lt;CODE class=" language-jsl"&gt;Make Combined Data Table"&lt;/CODE&gt;&amp;nbsp;not applicable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I script to make a generic script for this?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 20:13:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-quot-make-into-combined-data-table-quot-of-Fit-Life-By/m-p/723015#M90523</guid>
      <dc:creator>FrequencyBison9</dc:creator>
      <dc:date>2024-02-08T20:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting "make into combined data table" of Fit Life By X with multiple groups</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-quot-make-into-combined-data-table-quot-of-Fit-Life-By/m-p/723101#M90526</link>
      <description>&lt;P&gt;I'm not familiar with Fit Life by X but seems like it provides unnecessary complicated JSL but I'm not sure what could be easily removed. What you want to do, is to &lt;STRONG&gt;find first&lt;/STRONG&gt; Weibull results table box for estimates and send the message to that.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Reliability/Devalt.jmp");

flx =  dt &amp;lt;&amp;lt; Fit Life by X(
	SendToByGroup({:Status == "Censored"}),
	Distribution(Lognormal),
	Relationship(Arrhenius Celsius),
	Y(:Hours),
	X(:Temp),
	Censor(:Censor),
	Censor Code(1),
	Freq(:Weight),
	&amp;lt;&amp;lt;Fit Lognormal,
	SendToByGroup(
		{:Status == "Censored"},
		&amp;lt;&amp;lt;Fit Weibull,
		&amp;lt;&amp;lt;Time Acceleration Baseline(10)
	),
	SendToByGroup({:Status == "Failed"}, &amp;lt;&amp;lt;Time Acceleration Baseline(40)),
);

dt_weibull = Report(flx)[Outline Box("Weibull Results"), Outline Box("Statistics"), Outline Box("Estimates"), Table Box(1)] &amp;lt;&amp;lt; Make Combined Data Table;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you have JMP17 you could also see what type of box path you can get from properties. Use Properties from toolbar&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1707455775647.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61011i15FC41D611180017/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1707455775647.png" alt="jthi_1-1707455775647.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and then find your table box and highlight it&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1707455829670.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61012iA5702171D7E8D4C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1707455829670.png" alt="jthi_2-1707455829670.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Report(platform)["Results","Weibull Results",TabPageBox(1),"Statistics","Estimates",TableBox(1)]&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Quickly looking this could be fairly robust option&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 05:18:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-quot-make-into-combined-data-table-quot-of-Fit-Life-By/m-p/723101#M90526</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-02-09T05:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting "make into combined data table" of Fit Life By X with multiple groups</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-quot-make-into-combined-data-table-quot-of-Fit-Life-By/m-p/724200#M90624</link>
      <description>&lt;P&gt;I am not sure that I understand the problem. I have questions:&lt;/P&gt;
&lt;P&gt;Do you have the data table?&lt;/P&gt;
&lt;P&gt;Does the above script run?&lt;/P&gt;
&lt;P&gt;If the script runs, what is the resulting table, and how is it different from your expectation?&lt;/P&gt;
&lt;P&gt;If you are not able to share your data here, please contact &lt;A href="mailto:support@jmp.com" target="_blank"&gt;support@jmp.com&lt;/A&gt; . And we can address it through that channel. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 05:14:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-quot-make-into-combined-data-table-quot-of-Fit-Life-By/m-p/724200#M90624</guid>
      <dc:creator>peng_liu</dc:creator>
      <dc:date>2024-02-14T05:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting "make into combined data table" of Fit Life By X with multiple groups</title>
      <link>https://community.jmp.com/t5/Discussions/Scripting-quot-make-into-combined-data-table-quot-of-Fit-Life-By/m-p/724568#M90739</link>
      <description>&lt;P&gt;I tried the following but it is giving me "object not scriptable..." errors&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = currentdatatable();
dt&amp;lt;&amp;lt;New Column( "d", character, formula("d"));
dt_name = dt&amp;lt;&amp;lt;get name;
// Append "_cleaned" to the name of the data table to create the filename
filename = Char(dt_name) || "_Fit Life By X";

MyWindow = New Window( filename, VertListBox = V List Box() );

rpt=VertListBox &amp;lt;&amp;lt; append(
 Fit Life by X(
	Distribution( Weibull ),
	Nested Model Tests( Location and Scale ),
	Y( :Name("Left"), :Name("Right") ),
	X( :d ),
	By(:Name ,:Location,:Street,:Apt,:Number),
	Where(:Number==1),
	&amp;lt;&amp;lt;Fit Weibull,
	Use Transformation Scale( 0 ),
	Show Overlay by Levels( 1 ),
	&amp;lt;&amp;lt;Set Scale( Weibull, Simultaneous ),
	&amp;lt;&amp;lt;Set Scriptables(
		{Distribution Comparisons(
			Profiler(
				1,
				Confidence Intervals( 1 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					Left( 507.3, Lock( 0 ), Show( 1 ) )
				)
			)
		), Quantile Comparisons(
			Profiler(
				1,
				Confidence Intervals( 1 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					Probability( 0.5, Lock( 0 ), Show( 1 ) )
				)
			)
		), Hazard Comparisons(
			Profiler(
				1,
				Confidence Intervals( 0 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					Left( 507.3, Lock( 0 ), Show( 1 ) )
				)
			)
		), Density Comparisons(
			Profiler(
				1,
				Confidence Intervals( 0 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					Left( 507.3, Lock( 0 ), Show( 1 ) )
				)
			)
		), Weibull Distribution(
			Profiler(
				1,
				Confidence Intervals( 1 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					Left( 507.273412168479, Lock( 0 ), Show( 1 ) )
				)
			)
		), Weibull Quantile(
			Profiler(
				1,
				Confidence Intervals( 1 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					Probability( 0.5, Lock( 0 ), Show( 1 ) )
				)
			)
		), Weibull Hazard(
			Profiler(
				1,
				Confidence Intervals( 0 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					Left( 507.273412168479, Lock( 0 ), Show( 1 ) )
				)
			)
		), Weibull Density(
			Profiler(
				1,
				Confidence Intervals( 0 ),
				Term Value(
					d( "d", Lock( 0 ), Show( 1 ) ),
					Left( 507.273412168479, Lock( 0 ), Show( 1 ) )
				)
			)
		), Scatter Plot Show Distribution(
			Weibull( 0 ),
			Lognormal( 0 ),
			Loglogistic( 0 ),
			Frechet( 0 ),
			Exponential( 0 ),
			SEV( 0 ),
			Normal( 0 ),
			Logistic( 0 ),
			LEV( 0 )
		)}
	),
	Confidence Interval Method( Likelihood ),
	SendToReport(
		Dispatch( {"Scatterplot"}, "2", ScaleBox, {Format( "Scientific", 10 )} ),
		Dispatch(
			{"Nonparametric Overlay"},
			"1",
			ScaleBox,
			{Format( "Scientific", 10 )}
		)
	)
));

dt_weibull = Report(rpt)[Outline Box("Weibull Results"), Outline Box("Statistics"), Outline Box("Estimates"), Table Box(1)] &amp;lt;&amp;lt; Make Combined Data Table;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;any idea what might be wrong?&lt;/P&gt;</description>
      <pubDate>Sat, 17 Feb 2024 00:56:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scripting-quot-make-into-combined-data-table-quot-of-Fit-Life-By/m-p/724568#M90739</guid>
      <dc:creator>FrequencyBison9</dc:creator>
      <dc:date>2024-02-17T00:56:36Z</dc:date>
    </item>
  </channel>
</rss>

