<?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 save predicted values into matrix or list without saving into existing data table in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-save-predicted-values-into-matrix-or-list-without-saving/m-p/79484#M36724</link>
    <description>&lt;P&gt;I am not sure how to create the matrix without creating the column in the data table, but here is a method that functionally will do what you want&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

// Get the groupings for the sex column
Summarize( dt, bysex = by( :sex ) );
obj = Bivariate( Y( :Weight ), X( :Height ) ) &amp;lt;&amp;lt; Group by( :sex );
obj &amp;lt;&amp;lt; Fit spline( 0.1, Standardized, {Save Predicteds} );

// Create the matricies for the groups and delete the
// columns from the data table
For( i = N Items( bysex ), i &amp;gt;= 1, i--,
	Eval(
		Parse(
			bysex[i] ||
			"_Predicted_Matrix = column(dt,N Col(dt))&amp;lt;&amp;lt;get values;"
		)
	);
	dt &amp;lt;&amp;lt; delete columns( N Cols( dt ) );
);
Show( f_Predicted_Matrix, m_Predicted_Matrix );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 18 Oct 2018 02:32:15 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-10-18T02:32:15Z</dc:date>
    <item>
      <title>How to save predicted values into matrix or list without saving into existing data table</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-predicted-values-into-matrix-or-list-without-saving/m-p/79468#M36718</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
obj = Bivariate( Y( :Weight ), X( :Height ) )&amp;lt;&amp;lt;Group by(:sex);;
obj&amp;lt;&amp;lt;Fit spline(0.1, Standardized,{Save Predicteds});&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;tried lis below , it won't work.&lt;/P&gt;&lt;P&gt;val_predict_ls=obj&amp;lt;&amp;lt;Save Predicteds.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 23:13:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-predicted-values-into-matrix-or-list-without-saving/m-p/79468#M36718</guid>
      <dc:creator>wu</dc:creator>
      <dc:date>2018-10-17T23:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to save predicted values into matrix or list without saving into existing data table</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-predicted-values-into-matrix-or-list-without-saving/m-p/79484#M36724</link>
      <description>&lt;P&gt;I am not sure how to create the matrix without creating the column in the data table, but here is a method that functionally will do what you want&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

// Get the groupings for the sex column
Summarize( dt, bysex = by( :sex ) );
obj = Bivariate( Y( :Weight ), X( :Height ) ) &amp;lt;&amp;lt; Group by( :sex );
obj &amp;lt;&amp;lt; Fit spline( 0.1, Standardized, {Save Predicteds} );

// Create the matricies for the groups and delete the
// columns from the data table
For( i = N Items( bysex ), i &amp;gt;= 1, i--,
	Eval(
		Parse(
			bysex[i] ||
			"_Predicted_Matrix = column(dt,N Col(dt))&amp;lt;&amp;lt;get values;"
		)
	);
	dt &amp;lt;&amp;lt; delete columns( N Cols( dt ) );
);
Show( f_Predicted_Matrix, m_Predicted_Matrix );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Oct 2018 02:32:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-predicted-values-into-matrix-or-list-without-saving/m-p/79484#M36724</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-10-18T02:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to save predicted values into matrix or list without saving into existing data table</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-save-predicted-values-into-matrix-or-list-without-saving/m-p/79587#M36767</link>
      <description>Thanks.&lt;BR /&gt;My attempt was trying get the a few key summary values like mean, sigma etc from a group of predicted values based on a large data base.&lt;BR /&gt;Looks like, need to go your way by saving into data table, then deleted them.</description>
      <pubDate>Thu, 18 Oct 2018 17:34:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-save-predicted-values-into-matrix-or-list-without-saving/m-p/79587#M36767</guid>
      <dc:creator>wu</dc:creator>
      <dc:date>2018-10-18T17:34:13Z</dc:date>
    </item>
  </channel>
</rss>

