<?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 write a script for selecting several columns (&amp;gt;1000)  in a data table as input for an Analysis (e.g. inverse correlations) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-write-a-script-for-selecting-several-columns-gt-1000-in-a/m-p/413456#M66312</link>
    <description>&lt;P&gt;I like this a lot!&lt;/P&gt;</description>
    <pubDate>Sun, 29 Aug 2021 13:18:56 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2021-08-29T13:18:56Z</dc:date>
    <item>
      <title>How to write a script for selecting several columns (&gt;1000)  in a data table as input for an Analysis (e.g. inverse correlations)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-write-a-script-for-selecting-several-columns-gt-1000-in-a/m-p/413441#M66309</link>
      <description>&lt;P&gt;Hi I am new to JSL and would like to make a script for selecting multiple columns (&amp;gt;1000) and to use them an input for analysis. For example using the Mulitvariate analysis tool and calculating the inverse correlation.&lt;BR /&gt;I have made a script for selecting two columns for Bivariate analysis but how to extend it for multiple columns as used in e.g Mulitvariate analysis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to find clues at this forum but I do something wrong and I am stuck. I would be very greatful if someone could help me with this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards /Anders&amp;nbsp;&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 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
xvar = .;
yvar = .;
win = New Window( "Example of Returning Values",
	&amp;lt;&amp;lt;Modal,
	Text Box( " Select numeric columns. " ),
	H List Box(
		Text Box( " X, Factor " ),
		x = Col List Box(
			dt, // data table reference
			all, // display all columns from the data table
 
// get the name of the selected column before the window closes

			xvar = (x &amp;lt;&amp;lt; Get Selected)[1];
			Show( xvar );
			
		),
		Text Box( "Y, Response" ),
		y = Col List Box(
			dt,
			all,
			yvar = (y &amp;lt;&amp;lt; Get Selected)[1];
			Show( yvar );
		)
	)
);
If (win["Button"] == 1, // if the user clicks OK...
xcol = Column( dt, xvar ); //  get the columns
ycol = Column( dt, yvar );


dt &amp;lt;&amp;lt; Bivariate( Y( ycol ), X( xcol ) ); // create a Bivariate plot
//dt &amp;lt;&amp;lt; Multivariate( Y(ycol), Inverse Correlations(1)); // create a Inverse Correlation Matris
// How to select several columns as input for Multivariate ( Y(???), Inverse Correlations(1));
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:36:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-write-a-script-for-selecting-several-columns-gt-1000-in-a/m-p/413441#M66309</guid>
      <dc:creator>Anders_M</dc:creator>
      <dc:date>2023-06-10T23:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script for selecting several columns (&gt;1000)  in a data table as input for an Analysis (e.g. inverse correlations)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-write-a-script-for-selecting-several-columns-gt-1000-in-a/m-p/413450#M66310</link>
      <description>&lt;P&gt;You were headed in the right direction.&amp;nbsp; Your original script limited the Yvar to only 1 variable, and so by removing that restriction it lets one choose multiple variables, which then are transferred as a list to the Multivariate input.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
xvar = .;
yvar = .;
win = New Window( "Example of Returning Values",
	&amp;lt;&amp;lt;Modal,
	Text Box( " Select numeric columns. " ),
	H List Box(
		
		Text Box( "Y, Response" ),
		y = Col List Box(
			dt,
			all,
			yvarList = (y &amp;lt;&amp;lt; Get Selected);
			Show( yvarList );
		)
	)
);
If( win["Button"] == 1, // if the user clicks OK...
	Multivariate(
		Y( Eval( yvarList ) ),
		Estimation Method( "Row-wise" ),
		Scatterplot Matrix( 1 ),
		Inverse Correlations( 1 )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 29 Aug 2021 12:39:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-write-a-script-for-selecting-several-columns-gt-1000-in-a/m-p/413450#M66310</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-08-29T12:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script for selecting several columns (&gt;1000)  in a data table as input for an Analysis (e.g. inverse correlations)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-write-a-script-for-selecting-several-columns-gt-1000-in-a/m-p/413453#M66311</link>
      <description>&lt;P&gt;You could also take a look at Column Dialog instead of building modal new window. Depending on the level of customization you need, it might be simpler to use.&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);
dt = Open("$SAMPLE_DATA/Solubility.jmp");
colDiag = Column Dialog(y = ColList("Y", Data Type("Numeric")));
dt &amp;lt;&amp;lt; Multivariate(Y(colDiag["y"]));&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 29 Aug 2021 12:47:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-write-a-script-for-selecting-several-columns-gt-1000-in-a/m-p/413453#M66311</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2021-08-29T12:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script for selecting several columns (&gt;1000)  in a data table as input for an Analysis (e.g. inverse correlations)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-write-a-script-for-selecting-several-columns-gt-1000-in-a/m-p/413456#M66312</link>
      <description>&lt;P&gt;I like this a lot!&lt;/P&gt;</description>
      <pubDate>Sun, 29 Aug 2021 13:18:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-write-a-script-for-selecting-several-columns-gt-1000-in-a/m-p/413456#M66312</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-08-29T13:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script for selecting several columns (&gt;1000)  in a data table as input for an Analysis (e.g. inverse correlations)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-write-a-script-for-selecting-several-columns-gt-1000-in-a/m-p/415101#M66423</link>
      <description>&lt;P&gt;Thanks Jarmo.&lt;/P&gt;&lt;P&gt;A good suggestion for lower level of customization and simpler use. /Anders&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 06:08:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-write-a-script-for-selecting-several-columns-gt-1000-in-a/m-p/415101#M66423</guid>
      <dc:creator>Anders_M</dc:creator>
      <dc:date>2021-09-03T06:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script for selecting several columns (&gt;1000)  in a data table as input for an Analysis (e.g. inverse correlations)</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-write-a-script-for-selecting-several-columns-gt-1000-in-a/m-p/416963#M66605</link>
      <description>&lt;P&gt;Thanks, that's a very simple way!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 19:06:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-write-a-script-for-selecting-several-columns-gt-1000-in-a/m-p/416963#M66605</guid>
      <dc:creator>Anders_M</dc:creator>
      <dc:date>2021-09-09T19:06:42Z</dc:date>
    </item>
  </channel>
</rss>

