<?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: How to extract values from an analysis and plot on the original graph? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-extract-values-from-an-analysis-and-plot-on-the-original/m-p/704303#M88836</link>
    <description>&lt;P&gt;The save columns wont work for this as the wanted value isn't on of those I believe.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to take the value of this line at (in this case) - 10. I need to take the values for all the target values for all the temperatures. Then plot these values as dots on top of the original graph.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MedianRooster10_0-1701353040043.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59154i508712B9879AC6F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MedianRooster10_0-1701353040043.png" alt="MedianRooster10_0-1701353040043.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MedianRooster10_1-1701353329112.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59155i2E6B39FBCA2BD9D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MedianRooster10_1-1701353329112.png" alt="MedianRooster10_1-1701353329112.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>Thu, 30 Nov 2023 14:09:31 GMT</pubDate>
    <dc:creator>MedianRooster10</dc:creator>
    <dc:date>2023-11-30T14:09:31Z</dc:date>
    <item>
      <title>How to extract values from an analysis and plot on the original graph?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-extract-values-from-an-analysis-and-plot-on-the-original/m-p/703996#M88815</link>
      <description>&lt;P&gt;I have a graph of voltage against current from this&amp;nbsp;I have ran a standard least squares analysis which has a data filter for different target values (I have attached the analysis). I want to plot the value from each target values regression plot back on to the original graph.&lt;/P&gt;
&lt;P&gt;Any help is appreciated.&lt;/P&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;Here is the code for the data fit and standard least squares (not sure if it is useful to answer the question):&lt;/P&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Data Table("Sorted") &amp;lt;&amp;lt; Data Filter(
	Location({890, 387}),
	Mode(Show(1)),
	Mode(Include(1)),
	Add Filter(
		columns(:Segment),
		Where(:Segment == -100),
		Display(:Segment, N Items(target_values))
	)
);
 
Data Table("Sorted") &amp;lt;&amp;lt; Fit Model(
	SendToByGroup(Bygroup Default),
	Y(:VCE),
	By(:Source Table 2),
	Effects(:ICE),
	Personality("Standard Least Squares"), 
//Emphasis( "Effect Leverage" ),
	Run(
		:VCE &amp;lt;&amp;lt; {Summary of Fit(0), Analysis of Variance(0), Parameter Estimates(0),
		Lack of Fit(0), Scaled Estimates(0), Plot Actual by Predicted(0),
		Plot Residual by Predicted(0), Plot Studentized Residuals(0), Plot Effect Leverage(0),
		Plot Residual by Normal Quantiles(0), Box Cox Y Transformation(0)}
	),
	Automatic Recalc(1)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 16:54:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-extract-values-from-an-analysis-and-plot-on-the-original/m-p/703996#M88815</guid>
      <dc:creator>MedianRooster10</dc:creator>
      <dc:date>2023-11-29T16:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract values from an analysis and plot on the original graph?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-extract-values-from-an-analysis-and-plot-on-the-original/m-p/704045#M88816</link>
      <description>&lt;P&gt;If I understand correctly you might be able to create the data you need by adding some of the possible formula columns (hold Ctrl when you click on the red triangle to broadcast it to all groups as you are using By column)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1701277055724.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59147i1F0D7B65341C977C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1701277055724.png" alt="jthi_0-1701277055724.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you want to get all possible values you can change with Data Filter, you might have to add that column also as by variable&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 16:58:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-extract-values-from-an-analysis-and-plot-on-the-original/m-p/704045#M88816</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-11-29T16:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract values from an analysis and plot on the original graph?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-extract-values-from-an-analysis-and-plot-on-the-original/m-p/704303#M88836</link>
      <description>&lt;P&gt;The save columns wont work for this as the wanted value isn't on of those I believe.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to take the value of this line at (in this case) - 10. I need to take the values for all the target values for all the temperatures. Then plot these values as dots on top of the original graph.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MedianRooster10_0-1701353040043.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59154i508712B9879AC6F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MedianRooster10_0-1701353040043.png" alt="MedianRooster10_0-1701353040043.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MedianRooster10_1-1701353329112.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59155i2E6B39FBCA2BD9D9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MedianRooster10_1-1701353329112.png" alt="MedianRooster10_1-1701353329112.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>Thu, 30 Nov 2023 14:09:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-extract-values-from-an-analysis-and-plot-on-the-original/m-p/704303#M88836</guid>
      <dc:creator>MedianRooster10</dc:creator>
      <dc:date>2023-11-30T14:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract values from an analysis and plot on the original graph?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-extract-values-from-an-analysis-and-plot-on-the-original/m-p/704583#M88875</link>
      <description>&lt;P&gt;Here is an example using the semiconductor capability data table.&amp;nbsp; The data points being plotted are not as organized as your data, however, the example show how to plot all data points on the Regression Plot&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1701395876795.png" style="width: 417px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/59181i582FB3551905BA6E/image-dimensions/417x806?v=v2" width="417" height="806" role="button" title="txnelson_0-1701395876795.png" alt="txnelson_0-1701395876795.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = 
// Open Data Table: semiconductor capability.jmp
// → Data Table( "semiconductor capability" )
Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
dt:wafer &amp;lt;&amp;lt; modeling type( ordinal );

Data Table( "Semiconductor Capability" ) &amp;lt;&amp;lt; Data Filter(
	Location( {890, 387} ),
	Mode( Show( 1 ) ),
	Mode( Include( 1 ) ),
	Add Filter(
		columns( :wafer ),
		Where( :wafer == 1 ),
		Display( :wafer )//, N Items(target_values))
	)
);
 
fm = Data Table( "Semiconductor Capability" ) &amp;lt;&amp;lt; Fit Model(
	SendToByGroup( Bygroup Default ),
	Y( :NPN1 ),
	By( :Site ),
	Effects( :PNP1 ),
	Personality( "Standard Least Squares" ), 
//Emphasis( "Effect Leverage" ),
	Run(
		:NPN1 &amp;lt;&amp;lt; {Summary of Fit( 0 ), Analysis of Variance( 0 ), Parameter Estimates( 0 ), Lack of Fit( 0 ),
		Scaled Estimates( 0 ), Plot Actual by Predicted( 0 ), Plot Residual by Predicted( 0 ),
		Plot Studentized Residuals( 0 ), Plot Effect Leverage( 0 ), Plot Residual by Normal Quantiles( 0 ),
		Box Cox Y Transformation( 0 )}
	),
	Automatic Recalc( 1 )
);

Summarize( byvals = by( :site ) );
For Each( {level}, byvals,
	fmr = Report( fm[Num( level )] );
	fmr["Regression Plot", framebox( 1 )] &amp;lt;&amp;lt; add graphics script(
		
		theVals = dt:NPN2 &amp;lt;&amp;lt; get values;
		For Each( {val, theRow}, theVals,
			colorList = {"Red", "Green", "Blue", "Orange", "Yellow"};
			x = "fill color( \!"" || Char( Eval( colorList[dt:site[theRow]] ) ) || "\!");";
			Eval( Parse( x ) );
			thematrix = {};
			Insert Into( thematrix, dt:PNP1[theRow] );
			Insert Into( thematrix, val );
			Transparency( 1 );
			Circle( PixelRadius( 3 ), thematrix, "FILL" );
		);
	);
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Dec 2023 02:07:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-extract-values-from-an-analysis-and-plot-on-the-original/m-p/704583#M88875</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-12-01T02:07:37Z</dc:date>
    </item>
  </channel>
</rss>

