<?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: Exclude data points from a regression line, but make them still visible in the diagram in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Exclude-data-points-from-a-regression-line-but-make-them-still/m-p/760075#M93862</link>
    <description>&lt;P&gt;Thank you very much, this is also very helpful information!&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2024 11:55:06 GMT</pubDate>
    <dc:creator>Lukas_Häfner</dc:creator>
    <dc:date>2024-05-22T11:55:06Z</dc:date>
    <item>
      <title>Exclude data points from a regression line, but make them still visible in the diagram</title>
      <link>https://community.jmp.com/t5/Discussions/Exclude-data-points-from-a-regression-line-but-make-them-still/m-p/735259#M91648</link>
      <description>&lt;P&gt;Hey everybody!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used a training set of data points to create a linear regression (signal intensity as a function of substance concentration within samples), and applied the resulting formula on a test set of data points for a reverse prediction of the associated sample's substance content. Now I would like to showcase the data points of the training set, the regression line that visualizes the linear regression, and the data points of the test set all in a single diagram. The purpose is to show how all the data points scatter arround the ideal function of signal intensity versus substance concentration. I know how to plot the data points of the training set and how to create the regression line within the same plot. But how do I add the data points of the test set without them influencing of the creation of the regression line? The data points of the test set should be present and visible in the diagram, but the regression line should be solely a product of the data points of the training set. Also, I would like to highlight the data points of the test set in a different color than the other data points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2024 13:48:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exclude-data-points-from-a-regression-line-but-make-them-still/m-p/735259#M91648</guid>
      <dc:creator>Lukas_Häfner</dc:creator>
      <dc:date>2024-03-16T13:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude data points from a regression line, but make them still visible in the diagram</title>
      <link>https://community.jmp.com/t5/Discussions/Exclude-data-points-from-a-regression-line-but-make-them-still/m-p/735262#M91650</link>
      <description>&lt;P&gt;There may be multiple ways to accomplish this. &amp;nbsp;If you select the rows of the test set and right click Exclude. &amp;nbsp;This will exclude the data from the analysis, but still show the points. &amp;nbsp;There are also multiple options for colors and markers with that same command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also create a column "Test" and identify the test rows (vs. the other rows, say 0 and 1) then use Rows&amp;gt;Color or Mark by Column&amp;gt;Test&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 13:38:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exclude-data-points-from-a-regression-line-but-make-them-still/m-p/735262#M91650</guid>
      <dc:creator>statman</dc:creator>
      <dc:date>2024-03-18T13:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude data points from a regression line, but make them still visible in the diagram</title>
      <link>https://community.jmp.com/t5/Discussions/Exclude-data-points-from-a-regression-line-but-make-them-still/m-p/736174#M91686</link>
      <description>&lt;P&gt;Its completely possible that I'm not understanding your question, but here are a couple things to try.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Byron_JMP_0-1710796956311.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62321iFB58F86EFA683FEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Byron_JMP_0-1710796956311.png" alt="Byron_JMP_0-1710796956311.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In the Fit Y by X platform, you can group the data by your column with the indicator for Train and Test (validation column)&lt;/P&gt;
&lt;P&gt;Then fit a line, which will be separate lines for test and train. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;To highlight the Train group, maybe try turning on the shaded and dashed lines for the confidence interval of the fit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made an example figure with the big class.JMP data set&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Byron_JMP_1-1710797190720.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62325iAA5F23DBD65773DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Byron_JMP_1-1710797190720.png" alt="Byron_JMP_1-1710797190720.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Graph builder can do something similar.&lt;/P&gt;
&lt;P&gt;double click on the legend to get these menus:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Byron_JMP_2-1710797426737.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62326i264858134826466B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Byron_JMP_2-1710797426737.png" alt="Byron_JMP_2-1710797426737.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made the "M" line completely transparent, "0".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Byron_JMP_3-1710797496456.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62327iBAEB555EACD59F1F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Byron_JMP_3-1710797496456.png" alt="Byron_JMP_3-1710797496456.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 21:31:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exclude-data-points-from-a-regression-line-but-make-them-still/m-p/736174#M91686</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2024-03-18T21:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude data points from a regression line, but make them still visible in the diagram</title>
      <link>https://community.jmp.com/t5/Discussions/Exclude-data-points-from-a-regression-line-but-make-them-still/m-p/736254#M91702</link>
      <description>&lt;P&gt;Using the Big Class dataset as an example: plot height vs weight and show all points but only plot correlation for Females.&lt;/P&gt;&lt;P&gt;Interactively:&lt;/P&gt;&lt;P&gt;- select Male rows in data table and exclude (but NOT hide).&lt;/P&gt;&lt;P&gt;- in Graph Builder: plot height against weight, set sex as Overlay variable, change from smoother to line of fit, then hold the SHIFT key and select "Show Excluded Rows" from the red triangle menu. The shift key is important because it unhides this usually hidden option.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="matth1_0-1710846715975.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62335i6278515AB1491847/image-size/medium?v=v2&amp;amp;px=400" role="button" title="matth1_0-1710846715975.png" alt="matth1_0-1710846715975.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Via scripting, this time using a local data filter rather than excluding rows in the data table:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to here(1);
dt = open("$SAMPLE_DATA/Big Class.jmp");
dt &amp;lt;&amp;lt; Graph Builder(
	Size( 300, 200 ),
	Show Control Panel( 0 ),
	Show Excluded Rows( 1 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements(
		Points( X, Y, Legend( 3 ) ),
		Line Of Fit( X, Y, Legend( 5 ), R²( 1 ) )
	),
	Local Data Filter(
		Show Controls( 0 ),
		Mode( Show( 0 ) ),
		Add Filter( columns( :sex ), Where( :sex == "F" ) )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="matth1_1-1710846918004.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62336iEF8429E6989C0C3E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="matth1_1-1710846918004.png" alt="matth1_1-1710846918004.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 11:16:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exclude-data-points-from-a-regression-line-but-make-them-still/m-p/736254#M91702</guid>
      <dc:creator>matth1</dc:creator>
      <dc:date>2024-03-19T11:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude data points from a regression line, but make them still visible in the diagram</title>
      <link>https://community.jmp.com/t5/Discussions/Exclude-data-points-from-a-regression-line-but-make-them-still/m-p/736260#M91704</link>
      <description>&lt;P&gt;I apologise if this posts twice. My first post seems to have vanished.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Big Class as an example: plot height vs weight but only show correlation using Female data points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interactively:&lt;/P&gt;&lt;P&gt;- in the data table, select Male data rows and exclude (but NOT hide),&lt;/P&gt;&lt;P&gt;- in Graph Builder: plot height against weight, set sex as Overlay variable, change smoother to line of fit, then with the SHIFT key pressed select &amp;nbsp;"Show Excluded Rows" from the red triangle menu (shift is needed to unhide this usually hidden option).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="matth1_0-1710847475354.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62341i3581C115E4287D0E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="matth1_0-1710847475354.png" alt="matth1_0-1710847475354.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using scripting, with a local data filter this time instead of modifying the table:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to here(1);
dt = open("$SAMPLE_DATA/Big Class.jmp");
dt &amp;lt;&amp;lt; Graph Builder(
	Size( 300, 200 ),
	Show Control Panel( 0 ),
	Show Excluded Rows( 1 ),
	Variables( X( :height ), Y( :weight ), Overlay( :sex ) ),
	Elements(
		Points( X, Y, Legend( 3 ) ),
		Line Of Fit( X, Y, Legend( 5 ), R²( 1 ) )
	),
	Local Data Filter(
		Show Controls( 0 ),
		Mode( Show( 0 ) ),
		Add Filter( columns( :sex ), Where( :sex == "F" ) )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="matth1_1-1710847516624.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/62342i924BC32F525A5C3E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="matth1_1-1710847516624.png" alt="matth1_1-1710847516624.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 11:27:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exclude-data-points-from-a-regression-line-but-make-them-still/m-p/736260#M91704</guid>
      <dc:creator>matth1</dc:creator>
      <dc:date>2024-03-19T11:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude data points from a regression line, but make them still visible in the diagram</title>
      <link>https://community.jmp.com/t5/Discussions/Exclude-data-points-from-a-regression-line-but-make-them-still/m-p/737308#M91838</link>
      <description>&lt;P&gt;Thank yo very much! Your advise helped me a lot!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 17:26:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exclude-data-points-from-a-regression-line-but-make-them-still/m-p/737308#M91838</guid>
      <dc:creator>Lukas_Häfner</dc:creator>
      <dc:date>2024-03-21T17:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude data points from a regression line, but make them still visible in the diagram</title>
      <link>https://community.jmp.com/t5/Discussions/Exclude-data-points-from-a-regression-line-but-make-them-still/m-p/737309#M91839</link>
      <description>&lt;P&gt;Thank you very much for your detailed description! It greatly improved my diagram!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 17:28:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exclude-data-points-from-a-regression-line-but-make-them-still/m-p/737309#M91839</guid>
      <dc:creator>Lukas_Häfner</dc:creator>
      <dc:date>2024-03-21T17:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude data points from a regression line, but make them still visible in the diagram</title>
      <link>https://community.jmp.com/t5/Discussions/Exclude-data-points-from-a-regression-line-but-make-them-still/m-p/760075#M93862</link>
      <description>&lt;P&gt;Thank you very much, this is also very helpful information!&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 11:55:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exclude-data-points-from-a-regression-line-but-make-them-still/m-p/760075#M93862</guid>
      <dc:creator>Lukas_Häfner</dc:creator>
      <dc:date>2024-05-22T11:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude data points from a regression line, but make them still visible in the diagram</title>
      <link>https://community.jmp.com/t5/Discussions/Exclude-data-points-from-a-regression-line-but-make-them-still/m-p/940053#M109390</link>
      <description>&lt;P&gt;amazing. thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2026 18:46:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Exclude-data-points-from-a-regression-line-but-make-them-still/m-p/940053#M109390</guid>
      <dc:creator>deveshv</dc:creator>
      <dc:date>2026-04-07T18:46:38Z</dc:date>
    </item>
  </channel>
</rss>

