<?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 Extracting VIP vs Coefficients for Centered and Scaled Data in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Extracting-VIP-vs-Coefficients-for-Centered-and-Scaled-Data/m-p/36750#M21575</link>
    <description>&lt;P&gt;Hello, I would like to extract, in a data table, the values for VIP and Coefficients for Centered and Scaled Data from the PLS output window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible through JSL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;BR /&gt;Matteo&lt;/P&gt;</description>
    <pubDate>Sat, 04 Mar 2017 17:52:12 GMT</pubDate>
    <dc:creator>matteo_patelmo</dc:creator>
    <dc:date>2017-03-04T17:52:12Z</dc:date>
    <item>
      <title>Extracting VIP vs Coefficients for Centered and Scaled Data</title>
      <link>https://community.jmp.com/t5/Discussions/Extracting-VIP-vs-Coefficients-for-Centered-and-Scaled-Data/m-p/36750#M21575</link>
      <description>&lt;P&gt;Hello, I would like to extract, in a data table, the values for VIP and Coefficients for Centered and Scaled Data from the PLS output window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible through JSL?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;BR /&gt;Matteo&lt;/P&gt;</description>
      <pubDate>Sat, 04 Mar 2017 17:52:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extracting-VIP-vs-Coefficients-for-Centered-and-Scaled-Data/m-p/36750#M21575</guid>
      <dc:creator>matteo_patelmo</dc:creator>
      <dc:date>2017-03-04T17:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting VIP vs Coefficients for Centered and Scaled Data</title>
      <link>https://community.jmp.com/t5/Discussions/Extracting-VIP-vs-Coefficients-for-Centered-and-Scaled-Data/m-p/36751#M21576</link>
      <description>Sure.  Find the object for the table in the Tree Structure for the report.  Send that object the "Make Into Data Table()" command.  It will create a new data table with the information.  Search for the "Make Into Data Table()" command in the scripting index for an example of the coding. &lt;BR /&gt;&lt;BR /&gt;M</description>
      <pubDate>Sat, 04 Mar 2017 20:50:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extracting-VIP-vs-Coefficients-for-Centered-and-Scaled-Data/m-p/36751#M21576</guid>
      <dc:creator>MikeD_Anderson</dc:creator>
      <dc:date>2017-03-04T20:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting VIP vs Coefficients for Centered and Scaled Data</title>
      <link>https://community.jmp.com/t5/Discussions/Extracting-VIP-vs-Coefficients-for-Centered-and-Scaled-Data/m-p/36755#M21578</link>
      <description>&lt;P&gt;Hello Mike, thanks. In the tree structure I was able to identify a tablebox with coefficients but not the VIPs.&amp;nbsp; It looks like the table behind the framebox containing the VIP vs coefficients is not accessible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2017 09:02:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extracting-VIP-vs-Coefficients-for-Centered-and-Scaled-Data/m-p/36755#M21578</guid>
      <dc:creator>matteo_patelmo</dc:creator>
      <dc:date>2017-03-05T09:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting VIP vs Coefficients for Centered and Scaled Data</title>
      <link>https://community.jmp.com/t5/Discussions/Extracting-VIP-vs-Coefficients-for-Centered-and-Scaled-Data/m-p/36758#M21579</link>
      <description>&lt;P&gt;Hello Mike, thanks. In the tree structure I was able to identify a tablebox with just coefficients but not the VIPs, in a sibling outlinebox.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot find&amp;nbsp;any table associated with the framebox I would like to extract data from (VIP vs coefficients).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;BR /&gt;Matteo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2017 09:06:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extracting-VIP-vs-Coefficients-for-Centered-and-Scaled-Data/m-p/36758#M21579</guid>
      <dc:creator>matteo_patelmo</dc:creator>
      <dc:date>2017-03-05T09:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting VIP vs Coefficients for Centered and Scaled Data</title>
      <link>https://community.jmp.com/t5/Discussions/Extracting-VIP-vs-Coefficients-for-Centered-and-Scaled-Data/m-p/36761#M21582</link>
      <description>You have to right click on the table and select Columns &amp;gt; VIF for the VIF’s to show up.  This will also show the command necessary to see them using JSL (Show the VIF column, then copy script to script window under the red triangle).&lt;BR /&gt;&lt;BR /&gt;M&lt;BR /&gt;</description>
      <pubDate>Sun, 05 Mar 2017 16:00:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extracting-VIP-vs-Coefficients-for-Centered-and-Scaled-Data/m-p/36761#M21582</guid>
      <dc:creator>MikeD_Anderson</dc:creator>
      <dc:date>2017-03-05T16:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting VIP vs Coefficients for Centered and Scaled Data</title>
      <link>https://community.jmp.com/t5/Discussions/Extracting-VIP-vs-Coefficients-for-Centered-and-Scaled-Data/m-p/36762#M21583</link>
      <description>&lt;P&gt;Actually I was looking for VIP , not VIF, under PLS platform. I've not been able to find a table containing both VIP and coefficients.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In any case I think I figured out a workaround. Coefficients and VIPs are in two separate table boxes, so I will just extract them separately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Matteo&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2017 16:26:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extracting-VIP-vs-Coefficients-for-Centered-and-Scaled-Data/m-p/36762#M21583</guid>
      <dc:creator>matteo_patelmo</dc:creator>
      <dc:date>2017-03-05T16:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting VIP vs Coefficients for Centered and Scaled Data</title>
      <link>https://community.jmp.com/t5/Discussions/Extracting-VIP-vs-Coefficients-for-Centered-and-Scaled-Data/m-p/36933#M21673</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think this will do you what you want.&lt;/P&gt;
&lt;P&gt;You can find the report section of any output by right-clicking and select Edit--&amp;gt;Show&amp;nbsp;Tree Structure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used the Baltic sample table for this example.&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="Edit--Show Tree Structure" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/5515i9D88BDB565AEB345/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2017-03-08 10.25.06.png" alt="Edit--Show Tree Structure" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Edit--Show Tree Structure&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TableBox(7)  VIP table" style="width: 796px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/5516i15FF4EE12F0C1F8B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2017-03-08 10.26.21.png" alt="TableBox(7)  VIP table" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;TableBox(7)  VIP table&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I joined the tables using Tables --&amp;gt; JMP Query Builder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the full script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
Open( "$SAMPLE_DATA/Baltic.jmp" );
P = Partial Least Squares(
	Y( :ls, :ha, :dt ),
	X(
		:v1,
		:v2,
		:v3,
		:v4,
		:v5,
		:v6,
		:v7,
		:v8,
		:v9,
		:v10,
		:v11,
		:v12,
		:v13,
		:v14,
		:v15,
		:v16,
		:v17,
		:v18,
		:v19,
		:v20,
		:v21,
		:v22,
		:v23,
		:v24,
		:v25,
		:v26,
		:v27
	),
	Validation Method( Name( "Leave-One-Out" ), Initial Number of Factors( 15 ) ),
	Fit(
		Method( NIPALS ),
		Number of Factors( 7 ),
		Variable Importance Plot( 1 ),
		VIP vs Coefficients Plots( 1 )
	),
	SendToReport(
		Dispatch(
			{"NIPALS Fit with 7 Factors"},
			"Model Coefficients for Centered and Scaled Data",
			OutlineBox,
			{Close( 0 )}
		),
		Dispatch(
			{"NIPALS Fit with 7 Factors", "Variable Importance Plot"},
			"Variable Importance Table",
			OutlineBox,
			{Close( 0 )}
		)
	)
);

pls_rpt = p &amp;lt;&amp;lt; report; //Get the report
//Find the specific section of report by right-clicking Edit--&amp;gt;show properties

//pls_rpt[Outline Box( 9 )] &amp;lt;&amp;lt; Close;  //Close the outline box; for example
//pls_rpt[Outline Box( 12 )] &amp;lt;&amp;lt; Close; //Close the outline box; not necessary

coef_tbl = pls_rpt[Table Box( 5 )];
VIP_tbl = pls_rpt[Table Box( 7 )];
coef_tbl &amp;lt;&amp;lt; Make Into Data Table(Invisible);
tbl_1# = Current Data Table()&amp;lt;&amp;lt; Set Name("Coefficients_Tbl");

VIP_tbl&amp;lt;&amp;lt;Make Into Data Table(Invisible);
tbl_2# = Current Data Table()&amp;lt;&amp;lt; Set Name("VIP_Tbl");

New SQL Query(
	Version( 130 ),
	Connection( "JMP" ),
	JMP Tables( ["Coefficients_Tbl" =&amp;gt; "_MEMORY_", "VIP_Tbl" =&amp;gt; "_MEMORY_"] ),
	QueryName( "SQLQuery2" ),
	Select(
		Column( "VIP", "t1", Numeric Format( "Fixed Dec", "4", "NO", "" ) ),
		Column( "Coefficient", "t2" ),
		Column( "ls", "t2", Numeric Format( "Fixed Dec", "4", "NO", "" ) ),
		Column( "ha", "t2", Numeric Format( "Fixed Dec", "4", "NO", "" ) ),
		Column( "dt", "t2", Numeric Format( "Fixed Dec", "4", "NO", "" ) )
	),
	From(
		Table( "VIP_Tbl", Alias( "t1" ) ),
		Table(
			"Coefficients_Tbl",
			Alias( "t2" ),
			Join(
				Type( Left Outer ),
				EQ( Column( "X", "t1" ), Column( "Coefficient", "t2" ) )
			)
		)
	)
) &amp;lt;&amp;lt; Run;

Close( tbl_1#, NoSave );
Close( tbl_2#, NoSave );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Stan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2017 15:38:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extracting-VIP-vs-Coefficients-for-Centered-and-Scaled-Data/m-p/36933#M21673</guid>
      <dc:creator>stan_koprowski</dc:creator>
      <dc:date>2017-03-08T15:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting VIP vs Coefficients for Centered and Scaled Data</title>
      <link>https://community.jmp.com/t5/Discussions/Extracting-VIP-vs-Coefficients-for-Centered-and-Scaled-Data/m-p/37052#M21757</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matteo&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 19:29:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Extracting-VIP-vs-Coefficients-for-Centered-and-Scaled-Data/m-p/37052#M21757</guid>
      <dc:creator>matteo_patelmo</dc:creator>
      <dc:date>2017-03-10T19:29:27Z</dc:date>
    </item>
  </channel>
</rss>

