<?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 For Loop every two columns to perform the same function in a data table with n columns in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/For-Loop-every-two-columns-to-perform-the-same-function-in-a/m-p/364473#M61405</link>
    <description>&lt;P&gt;Hi! I'm new to JSL scripting, and have tried to read the JSL reference manual/google JSL script examples. Could someone please point me in the direction on how to for loop every two columns to perform the same function in a JMP data table with n columns?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I have a large data spreadsheet where every odd column is failure time, every even column is the censoring, and I would like to fit these data sets automatically n times. I know that if there was only two columns, I can click through the entire process on the JMP GUI interface and grab the script, but I'm not sure how to automate it to repeat the process again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 22:07:21 GMT</pubDate>
    <dc:creator>etmsni</dc:creator>
    <dc:date>2023-06-09T22:07:21Z</dc:date>
    <item>
      <title>For Loop every two columns to perform the same function in a data table with n columns</title>
      <link>https://community.jmp.com/t5/Discussions/For-Loop-every-two-columns-to-perform-the-same-function-in-a/m-p/364473#M61405</link>
      <description>&lt;P&gt;Hi! I'm new to JSL scripting, and have tried to read the JSL reference manual/google JSL script examples. Could someone please point me in the direction on how to for loop every two columns to perform the same function in a JMP data table with n columns?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I have a large data spreadsheet where every odd column is failure time, every even column is the censoring, and I would like to fit these data sets automatically n times. I know that if there was only two columns, I can click through the entire process on the JMP GUI interface and grab the script, but I'm not sure how to automate it to repeat the process again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 22:07:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-Loop-every-two-columns-to-perform-the-same-function-in-a/m-p/364473#M61405</guid>
      <dc:creator>etmsni</dc:creator>
      <dc:date>2023-06-09T22:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop every two columns to perform the same function in a data table with n columns</title>
      <link>https://community.jmp.com/t5/Discussions/For-Loop-every-two-columns-to-perform-the-same-function-in-a/m-p/364481#M61406</link>
      <description>&lt;P&gt;Here is a simple example of repeating over a data table, 2 columns at a time&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA\semiconductor capability.jmp" );

colNamesList = dt &amp;lt;&amp;lt; get column names( continuous, string );

For( i = 1, i &amp;lt;= N Items( colNamesList ), i = i + 2,
	Bivariate(
		Y( colNamesList[i] ),
		X( colNamesList[i + 1] ),
		Fit Line( {Line Color( "Medium Dark Red" )} )
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Mar 2021 19:22:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-Loop-every-two-columns-to-perform-the-same-function-in-a/m-p/364481#M61406</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2021-03-02T19:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: For Loop every two columns to perform the same function in a data table with n columns</title>
      <link>https://community.jmp.com/t5/Discussions/For-Loop-every-two-columns-to-perform-the-same-function-in-a/m-p/364500#M61408</link>
      <description>&lt;P&gt;Thank you so much!!! Really appreciate your help~ :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2021 19:41:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/For-Loop-every-two-columns-to-perform-the-same-function-in-a/m-p/364500#M61408</guid>
      <dc:creator>etmsni</dc:creator>
      <dc:date>2021-03-02T19:41:38Z</dc:date>
    </item>
  </channel>
</rss>

