<?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 Extract slope and intercept from Summary of Fit in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Extract-slope-and-intercept-from-Summary-of-Fit/m-p/42786#M24805</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a script that extracts slope and intercept from Summary of Fit and then uses them to calculate a cutoff value for my variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The user will first imput filters and remove outliers. When satisfied with the data points, he/she presses a button and get the slope and interecept as shown in Summary of fit, to be used for the cutoff calculation.&lt;/P&gt;&lt;P&gt;Can anybody help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Aug 2017 15:46:57 GMT</pubDate>
    <dc:creator>francescaz</dc:creator>
    <dc:date>2017-08-02T15:46:57Z</dc:date>
    <item>
      <title>Extract slope and intercept from Summary of Fit</title>
      <link>https://community.jmp.com/t5/Discussions/Extract-slope-and-intercept-from-Summary-of-Fit/m-p/42786#M24805</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a script that extracts slope and intercept from Summary of Fit and then uses them to calculate a cutoff value for my variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The user will first imput filters and remove outliers. When satisfied with the data points, he/she presses a button and get the slope and interecept as shown in Summary of fit, to be used for the cutoff calculation.&lt;/P&gt;&lt;P&gt;Can anybody help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 15:46:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extract-slope-and-intercept-from-Summary-of-Fit/m-p/42786#M24805</guid>
      <dc:creator>francescaz</dc:creator>
      <dc:date>2017-08-02T15:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Extract slope and intercept from Summary of Fit</title>
      <link>https://community.jmp.com/t5/Discussions/Extract-slope-and-intercept-from-Summary-of-Fit/m-p/42787#M24806</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/9038"&gt;@francescaz&lt;/a&gt;&amp;nbsp;:&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; In order to get the data from summary of fit , please refer to here&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/Discussions/JSL-A-script-that-extracts-textbox-information-from-a-bivariate/td-p/13016&amp;nbsp;" target="_blank"&gt;https://community.jmp.com/t5/Discussions/JSL-A-script-that-extracts-textbox-information-from-a-bivariate/td-p/13016&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;As for definition of cutoff point , can you define the conditions or share what you have &amp;nbsp;?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;&amp;nbsp;Uday&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2017 15:53:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extract-slope-and-intercept-from-Summary-of-Fit/m-p/42787#M24806</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2017-08-02T15:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Extract slope and intercept from Summary of Fit</title>
      <link>https://community.jmp.com/t5/Discussions/Extract-slope-and-intercept-from-Summary-of-Fit/m-p/42844#M24846</link>
      <description>&lt;P&gt;Thank you for the link, it's very usefult.&lt;/P&gt;&lt;P&gt;The cutoff is a predefined concentration of analyte, so once the intercept and slope are known, it's easily determined. I'd like to add it to my y as a specification limit but the ultimate goal would be to fill in an xml template with slope and interecept. Is there any way to fill in&amp;nbsp;xml files with jmp?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 07:00:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extract-slope-and-intercept-from-Summary-of-Fit/m-p/42844#M24846</guid>
      <dc:creator>francescaz</dc:creator>
      <dc:date>2017-08-04T07:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Extract slope and intercept from Summary of Fit</title>
      <link>https://community.jmp.com/t5/Discussions/Extract-slope-and-intercept-from-Summary-of-Fit/m-p/42849#M24849</link>
      <description>&lt;P&gt;Yes. If the XML template exists, you can use 'LoadTextFile()', make the changes and insertions you require using JSL, then use 'SaveTextFile()'. Look in 'Help &amp;gt; Scripting Index' for details of these JSL expressions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm sure you would get more speciifc guidance if you are able to provide an example.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 10:41:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extract-slope-and-intercept-from-Summary-of-Fit/m-p/42849#M24849</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2017-08-04T10:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Extract slope and intercept from Summary of Fit</title>
      <link>https://community.jmp.com/t5/Discussions/Extract-slope-and-intercept-from-Summary-of-Fit/m-p/42931#M24891</link>
      <description>&lt;P&gt;here is my code so far.&lt;/P&gt;
&lt;P&gt;It works as is, just&amp;nbsp;I'd like to get both slope and intercept from Num Col Box(7) and I can't figure out what's wrong with&amp;nbsp;&lt;SPAN&gt;int =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;num(word(1, eq2)). It returns no number, so I'm getting the intercept from&amp;nbsp;Outline Box(2).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I attach the template xml.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Current Data Table();
biv = dt &amp;lt;&amp;lt; Bivariate(Y(:variable1), X(:Conc A), Fit Line());
rbiv=report(biv);
 
eq1=rbiv[Outline Box(2)][1, 1] &amp;lt;&amp;lt; get text; 
eq2=rbiv[Number Col Box(7)] &amp;lt;&amp;lt; get text; 

slope = num(word(2, eq2));
int = num(word(3, eq1)); //I'd like to get both numebers from Number Col Box (7), but if set int = num(word(1, eq2)) I get nothing.
 
Cutoff = int+slope*2.5;
Eval(
Eval Expr(
:variable1 &amp;lt;&amp;lt; Set Property(
"Spec Limits",
{LSL( Expr( Cutoff ) ), USL( Expr( . ) ), Target( Expr( . ) ),
Show Limits( 1 )}
)
)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2017 17:25:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extract-slope-and-intercept-from-Summary-of-Fit/m-p/42931#M24891</guid>
      <dc:creator>francescaz</dc:creator>
      <dc:date>2017-08-07T17:25:25Z</dc:date>
    </item>
  </channel>
</rss>

