<?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: Automatically generating reports in Degradation Data Analysis platform? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Automatically-generating-reports-in-Degradation-Data-Analysis/m-p/807429#M98671</link>
    <description>&lt;P&gt;You might have to do this by scripting. Below is one option (not very robust script, but can give some ideas about what can be done)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Reliability/Adhesive Bond.jmp");
obj = dt &amp;lt;&amp;lt; Destructive Degradation(
	Y(:Strength),
	Time(:Weeks),
	X(:Degrees),
	Censor(:Censor),
	Censor Code("Right"),
	Control("Log10", "Sqrt", "Normal", "Individual Path with Intercept")
);

rep = Report(obj);

cb = (rep &amp;lt;&amp;lt; XPath("//PanelBox[text() = 'Distribution']/ComboBox"))[1];
rb_transformations = (rep &amp;lt;&amp;lt; XPath("//PanelBox[text() = 'Transformation']//RadioBox"));

cb_options = cb &amp;lt;&amp;lt; get items;
rb_tr = rb_transformations &amp;lt;&amp;lt; get items;
btn = (rep &amp;lt;&amp;lt; XPath("//ButtonBox[text() = 'Generate Report']"))[1];
tb1 = rep[TextBox(3)];
tb2 = rep[TextBox(4)];

For Each({option, idx}, cb_options,
	cb &amp;lt;&amp;lt; Set(idx);
	For Each({op1, idx1}, rb_tr[1],
		rb_transformations[1] &amp;lt;&amp;lt; Set(idx1);
		For Each({op2, idx2}, rb_tr[2],
			rb_transformations[2] &amp;lt;&amp;lt; Set(idx2);
			visibilities = {tb1, tb2} &amp;lt;&amp;lt; get visibility;
			visibs = Loc(visibilities, "Visible");
			If(N Items(visibs) == 0,
				btn &amp;lt;&amp;lt; Click(1);
			,
				skipped_txt = Eval insert("\[Skipped combination ^option^+^op1^+^op2^ due to ^Concat Items(({tb1, tb2} &amp;lt;&amp;lt; get text)[Matrix(visibs)], ", ")^]\");
				Write("\!N", skipped_txt);		
			);
			wait(0);
		);
	);
);

Write();&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 22 Oct 2024 14:40:53 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-10-22T14:40:53Z</dc:date>
    <item>
      <title>Automatically generating reports in Degradation Data Analysis platform?</title>
      <link>https://community.jmp.com/t5/Discussions/Automatically-generating-reports-in-Degradation-Data-Analysis/m-p/807412#M98666</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When analyzing degradation data using the Degradation Data Analysis platform, I want to screen various models in order to select the best one based on AICc. To do this I am manually applying the different distributions and transformations for a given path definition, and generating reports for each combination by clicking the "Generate Report" button. Is there a way to have JMP automatically generate reports for all the combinations and add them to the Model List? A bonus would be to have JMP perform this while also excluding transformations that are deemed inappropiate or generates missing values (i.e. applying log-tranformation to the time factor when it contains zero).&lt;/P&gt;&lt;P&gt;JMP version 17.2&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;/JF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 13:30:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automatically-generating-reports-in-Degradation-Data-Analysis/m-p/807412#M98666</guid>
      <dc:creator>AR80615</dc:creator>
      <dc:date>2024-10-22T13:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Automatically generating reports in Degradation Data Analysis platform?</title>
      <link>https://community.jmp.com/t5/Discussions/Automatically-generating-reports-in-Degradation-Data-Analysis/m-p/807429#M98671</link>
      <description>&lt;P&gt;You might have to do this by scripting. Below is one option (not very robust script, but can give some ideas about what can be done)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Reliability/Adhesive Bond.jmp");
obj = dt &amp;lt;&amp;lt; Destructive Degradation(
	Y(:Strength),
	Time(:Weeks),
	X(:Degrees),
	Censor(:Censor),
	Censor Code("Right"),
	Control("Log10", "Sqrt", "Normal", "Individual Path with Intercept")
);

rep = Report(obj);

cb = (rep &amp;lt;&amp;lt; XPath("//PanelBox[text() = 'Distribution']/ComboBox"))[1];
rb_transformations = (rep &amp;lt;&amp;lt; XPath("//PanelBox[text() = 'Transformation']//RadioBox"));

cb_options = cb &amp;lt;&amp;lt; get items;
rb_tr = rb_transformations &amp;lt;&amp;lt; get items;
btn = (rep &amp;lt;&amp;lt; XPath("//ButtonBox[text() = 'Generate Report']"))[1];
tb1 = rep[TextBox(3)];
tb2 = rep[TextBox(4)];

For Each({option, idx}, cb_options,
	cb &amp;lt;&amp;lt; Set(idx);
	For Each({op1, idx1}, rb_tr[1],
		rb_transformations[1] &amp;lt;&amp;lt; Set(idx1);
		For Each({op2, idx2}, rb_tr[2],
			rb_transformations[2] &amp;lt;&amp;lt; Set(idx2);
			visibilities = {tb1, tb2} &amp;lt;&amp;lt; get visibility;
			visibs = Loc(visibilities, "Visible");
			If(N Items(visibs) == 0,
				btn &amp;lt;&amp;lt; Click(1);
			,
				skipped_txt = Eval insert("\[Skipped combination ^option^+^op1^+^op2^ due to ^Concat Items(({tb1, tb2} &amp;lt;&amp;lt; get text)[Matrix(visibs)], ", ")^]\");
				Write("\!N", skipped_txt);		
			);
			wait(0);
		);
	);
);

Write();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Oct 2024 14:40:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Automatically-generating-reports-in-Degradation-Data-Analysis/m-p/807429#M98671</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-10-22T14:40:53Z</dc:date>
    </item>
  </channel>
</rss>

