<?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: JMP Graph Builder regression line with known slope (slope user defined) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Adding-a-regression-line-with-known-slope-in-Graph-Builder/m-p/40056#M23449</link>
    <description>&lt;P&gt;While there is nothing as straight forward as in the Bivariate graph, for adding functions, you can use the Customize capability in Graph Builder, and get any kind of function displayed you desire&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph builder line of fit special.PNG" style="width: 990px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/6375iF45E08CE53E3DAD1/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph builder line of fit special.PNG" alt="graph builder line of fit special.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is a very simple linear equasion added to Graph Builder using the following addition to the Customize ability&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Pen Color( "red" );
Pen Size( 3 );
intercept = 50;
beta = .2;
Y Function( intercept + beta * x, x );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph builder simple line.PNG" style="width: 989px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/6376i4573964003C8FE15/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph builder simple line.PNG" alt="graph builder simple line.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2017 00:53:57 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2017-06-07T00:53:57Z</dc:date>
    <item>
      <title>Adding a regression line with known slope in Graph Builder</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-regression-line-with-known-slope-in-Graph-Builder/m-p/40050#M23446</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I like to use Graph builder for &amp;nbsp;X-Y correlation charts instead of using Bivariate. Does someone knows weather in graph builder we can do a regression line or fit line with known slope? &amp;nbsp;can user define the slope of fit? i want to use graph builder since i want to have multiple charts separated in GX and GY groupes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for your inputs.&lt;/P&gt;
&lt;P&gt;Ram&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:23:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-regression-line-with-known-slope-in-Graph-Builder/m-p/40050#M23446</guid>
      <dc:creator>ram</dc:creator>
      <dc:date>2023-06-09T23:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Graph Builder regression line with known slope (slope user defined)</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-regression-line-with-known-slope-in-Graph-Builder/m-p/40052#M23447</link>
      <description>&lt;P&gt;Line of Fit is one of the items that can be placed onto a Graph Builder graph&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph builder line of fit.PNG" style="width: 986px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/6373i0CADB774501108B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph builder line of fit.PNG" alt="graph builder line of fit.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2017 21:20:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-regression-line-with-known-slope-in-Graph-Builder/m-p/40052#M23447</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-06-06T21:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Graph Builder regression line with known slope (slope user defined)</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-regression-line-with-known-slope-in-Graph-Builder/m-p/40053#M23448</link>
      <description>How can i adjust slope or how i can change the slope of fit line.</description>
      <pubDate>Tue, 06 Jun 2017 21:41:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-regression-line-with-known-slope-in-Graph-Builder/m-p/40053#M23448</guid>
      <dc:creator>ram</dc:creator>
      <dc:date>2017-06-06T21:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Graph Builder regression line with known slope (slope user defined)</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-regression-line-with-known-slope-in-Graph-Builder/m-p/40056#M23449</link>
      <description>&lt;P&gt;While there is nothing as straight forward as in the Bivariate graph, for adding functions, you can use the Customize capability in Graph Builder, and get any kind of function displayed you desire&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph builder line of fit special.PNG" style="width: 990px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/6375iF45E08CE53E3DAD1/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph builder line of fit special.PNG" alt="graph builder line of fit special.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is a very simple linear equasion added to Graph Builder using the following addition to the Customize ability&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Pen Color( "red" );
Pen Size( 3 );
intercept = 50;
beta = .2;
Y Function( intercept + beta * x, x );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph builder simple line.PNG" style="width: 989px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/6376i4573964003C8FE15/image-size/large?v=v2&amp;amp;px=999" role="button" title="graph builder simple line.PNG" alt="graph builder simple line.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 00:53:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-regression-line-with-known-slope-in-Graph-Builder/m-p/40056#M23449</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-06-07T00:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Graph Builder regression line with known slope (slope user defined)</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-regression-line-with-known-slope-in-Graph-Builder/m-p/40058#M23450</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/8800"&gt;@ram&lt;/a&gt;,&lt;BR /&gt;Yes, you can do this with a custom graphics script. In graph builder, or any graph for that matter, right click &amp;gt; customize. Then, click the plus sign to add a new graphics script. There is a template for a y function that will work for you, and you can customize/change the slope (or anything else you like) about the y function. Below is a brief video showing that. Is this what you were looking for?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;Julian&lt;/P&gt;
&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-BsZG5oYjE6X3iCcjh7RSYTP2wB31nJLdw400h300r914" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6064700962001" data-account="6058004218001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6058004218001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-BsZG5oYjE6X3iCcjh7RSYTP2wB31nJLdw400h300r914');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.jmp.com/t5/video/gallerypage/video-id/BsZG5oYjE6X3iCcjh7RSYTP2wB31nJLd"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 00:53:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-regression-line-with-known-slope-in-Graph-Builder/m-p/40058#M23450</guid>
      <dc:creator>jules</dc:creator>
      <dc:date>2017-06-07T00:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Graph Builder regression line with known slope (slope user defined)</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-regression-line-with-known-slope-in-Graph-Builder/m-p/195197#M41607</link>
      <description>&lt;P&gt;How about the situation where I know only the intercept but not the slope?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 17:34:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-regression-line-with-known-slope-in-Graph-Builder/m-p/195197#M41607</guid>
      <dc:creator>Core</dc:creator>
      <dc:date>2019-04-26T17:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: JMP Graph Builder regression line with known slope (slope user defined)</title>
      <link>https://community.jmp.com/t5/Discussions/Adding-a-regression-line-with-known-slope-in-Graph-Builder/m-p/195306#M41627</link>
      <description>&lt;P&gt;You could use 'Fit Special' in 'Fit Y By X', then the approach of &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;NamesDefaultToHere(1);

// Example data
dt = Open("$SAMPLE_DATA/Big Class.jmp");
// Plot data
biv = dt &amp;lt;&amp;lt; Bivariate(Y( :height ), X( :weight ), Invisible);
// Fit Special
myIntercept = 0;
biv &amp;lt;&amp;lt; Fit Special( Intercept( myIntercept ));
// Save formula to table
biv &amp;lt;&amp;lt; (Curve[1] &amp;lt;&amp;lt; savePredicteds);
// Close Bivariate
Report(biv) &amp;lt;&amp;lt; closeWindow;
// Get the formula
form = Column(dt, "Predicted Height") &amp;lt;&amp;lt; getFormula;
// Express the formula as a function of x so 'YFunction()' will work
SubstituteInto(form, Expr(:weight), Expr(x));
// Use Graph Builder
gb = dt &amp;lt;&amp;lt; Graph Builder(
						Show Control Panel( 0 ),
						Variables( X( :weight ), Y( :height ) ),
						Elements( Points( X, Y, Legend( 3 ) ) )
					);
// Add the graphics script
gbRep = Report(gb);
addScript = Expr(gbRep[FrameBox(1)] &amp;lt;&amp;lt; addGraphicsScript(PenColor("Red"); YFunction(formTBD, x)));
SubstituteInto(addScript, Expr(formTBD), NameExpr(form));
addScript;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 09:25:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Adding-a-regression-line-with-known-slope-in-Graph-Builder/m-p/195306#M41627</guid>
      <dc:creator>ian_jmp</dc:creator>
      <dc:date>2019-04-29T09:25:45Z</dc:date>
    </item>
  </channel>
</rss>

