<?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: Actual by predicted plot of specific model in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Actual-by-predicted-plot-of-specific-model/m-p/37289#M21870</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank's for your answer. I think I did not explain very well my objective.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do, it is to evaluate my model. I would like to define the RSquare value of the model (if it is possible) and obtain the residual by predicted plot. Something like the jmp report for the fit least squares but considering the model that I defined as a formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2017 16:30:36 GMT</pubDate>
    <dc:creator>Gabriela_MJ</dc:creator>
    <dc:date>2017-03-16T16:30:36Z</dc:date>
    <item>
      <title>Actual by predicted plot of specific model</title>
      <link>https://community.jmp.com/t5/Discussions/Actual-by-predicted-plot-of-specific-model/m-p/37286#M21867</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a column (type formula) which corresponds to the model of another column (response).&lt;/P&gt;&lt;P&gt;I would like to know if it is possible to graph the actual by predicted plot considering as "actual" the response column and the column which contains the formula as the "predicted".&amp;nbsp;&lt;/P&gt;&lt;P&gt;I only see these graph when the model is defined by jmp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 16:19:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Actual-by-predicted-plot-of-specific-model/m-p/37286#M21867</guid>
      <dc:creator>Gabriela_MJ</dc:creator>
      <dc:date>2017-03-16T16:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Actual by predicted plot of specific model</title>
      <link>https://community.jmp.com/t5/Discussions/Actual-by-predicted-plot-of-specific-model/m-p/37288#M21869</link>
      <description>&lt;P&gt;I think the solution&amp;nbsp;might be simple.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Select Graph &amp;gt; Graph Builder.&lt;/LI&gt;
&lt;LI&gt;Select the observed response and drag it to the Y drop zone.&lt;/LI&gt;
&lt;LI&gt;Select the model column and drag it to the X drop zone.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Let me know if I over-simplified your request.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 16:23:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Actual-by-predicted-plot-of-specific-model/m-p/37288#M21869</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-03-16T16:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Actual by predicted plot of specific model</title>
      <link>https://community.jmp.com/t5/Discussions/Actual-by-predicted-plot-of-specific-model/m-p/37289#M21870</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank's for your answer. I think I did not explain very well my objective.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I want to do, it is to evaluate my model. I would like to define the RSquare value of the model (if it is possible) and obtain the residual by predicted plot. Something like the jmp report for the fit least squares but considering the model that I defined as a formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2017 16:30:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Actual-by-predicted-plot-of-specific-model/m-p/37289#M21870</guid>
      <dc:creator>Gabriela_MJ</dc:creator>
      <dc:date>2017-03-16T16:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Actual by predicted plot of specific model</title>
      <link>https://community.jmp.com/t5/Discussions/Actual-by-predicted-plot-of-specific-model/m-p/37291#M21872</link>
      <description>&lt;P&gt;This could be done with column formulas but it would get messy. This script should do the trick:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dlg = Column Dialog(
	Title( "Evaluate Model" ),
	yCol = Col List( "Response",
		Data Type( Numeric ),
		Min Col( 1 ),
		Max Col( 1 )
	),
	mCol = Col List( "Model",
		Data Type( Numeric ),
		Min Col( 1 ),
		Max Col( 1 )
	)
);
If( dlg["Button"] == -1,
	Throw( "User cancelled" );
);
Remove From( dlg );
Eval List( dlg );
dt = Current Data Table();
response = yCol[1] &amp;lt;&amp;lt; Get As Matrix;
model = mCol[1] &amp;lt;&amp;lt; Get As Matrix;
residual = model - response;
sst = Sum( (response - Mean( response ) )^2 );
sse = Sum( residual^2 );
ssm = sst - sse;
r square = ssm / sst;
dt &amp;lt;&amp;lt; New Column( "Residual", Values( residual ) );
New Window( "Evaluate Model",
	dt &amp;lt;&amp;lt; Graph Builder(
		Variables( X( mCol[1] ), Y( yCol[1] ) ),
		Elements( Points( X, Y, Legend( 3 ) ) ),
		Show Control Panel( 0 )
	),
	dt &amp;lt;&amp;lt; Graph Builder(
		Variables( X( :Residual ), Y( yCol[1] ) ),
		Elements( Points( X, Y, Legend( 3 ) ) ),
		Show Control Panel( 0 )
	),
	Text Box( "R square is " || Char( r square ) )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Mar 2017 16:56:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Actual-by-predicted-plot-of-specific-model/m-p/37291#M21872</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2017-03-16T16:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Actual by predicted plot of specific model</title>
      <link>https://community.jmp.com/t5/Discussions/Actual-by-predicted-plot-of-specific-model/m-p/37312#M21887</link>
      <description>You could try Fit Y by X.  Put the real data in X, the model data in Y.  Fit a line (red triangle).  The slope is the RSquared and you can examine the residuals using the other plots. &lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;&lt;BR /&gt;M</description>
      <pubDate>Thu, 16 Mar 2017 20:52:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Actual-by-predicted-plot-of-specific-model/m-p/37312#M21887</guid>
      <dc:creator>MikeD_Anderson</dc:creator>
      <dc:date>2017-03-16T20:52:36Z</dc:date>
    </item>
  </channel>
</rss>

