<?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: JSL script for save column in the Time Series in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-script-for-save-column-in-the-Time-Series/m-p/186277#M40471</link>
    <description>&lt;P&gt;I'm running across a similar issue, but instead of having many transfer functions to sort through and save only certain ones, I am running the ARIMA analysis on several columns in my source data table. This generates a model for each column. I then want to "save columns" from the Model:AR(1) hot button for each column, and do it via scripting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the obj &amp;lt;&amp;lt; Save Columns approach, which works, but only for the last column where the ARIMA was done. I need to do it for each one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, when I save columns manually, the new data table doesn't come with a "source" script, so it's hard to figure out how to do this with JSL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm really after is only the predicted column from the model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoguhts/feedback on this would help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2019 12:17:50 GMT</pubDate>
    <dc:creator>SDF1</dc:creator>
    <dc:date>2019-03-12T12:17:50Z</dc:date>
    <item>
      <title>JSL script for save column in the Time Series</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-script-for-save-column-in-the-Time-Series/m-p/79481#M36721</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to know how to write in JSL script if I want to "save columns" for the first 2 models shown in the model comparison table. Referring to attachment 1 is showing the model comparison table for the first 2 models. Next, in attachment 2 is showing the "save columns" that I want it to open. I want to write both precedures above in script. Is there anyone that can show me?&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pic1.JPG" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12873iB66C8068B9C1CE57/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pic1.JPG" alt="Pic1.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pic2.JPG" style="width: 798px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/12874i07E6B136747A1CB7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Pic2.JPG" alt="Pic2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 01:39:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-script-for-save-column-in-the-Time-Series/m-p/79481#M36721</guid>
      <dc:creator>ReginaHong</dc:creator>
      <dc:date>2018-10-18T01:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: JSL script for save column in the Time Series</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-script-for-save-column-in-the-Time-Series/m-p/79736#M36805</link>
      <description>&lt;P&gt;Just send the &amp;lt;&amp;lt; Save Columns command to the model object.&amp;nbsp; Here's the example in the scripting index.&amp;nbsp; Hope it helps!&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/Time Series/Steel Shipments.jmp" );
obj = Time Series( Y( :Steel Shipments ) );
obj2 = obj &amp;lt;&amp;lt; Arima( 1, 0, 0 );
obj2 &amp;lt;&amp;lt; Save Columns;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 21:29:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-script-for-save-column-in-the-Time-Series/m-p/79736#M36805</guid>
      <dc:creator>msharp</dc:creator>
      <dc:date>2018-10-19T21:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: JSL script for save column in the Time Series</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-script-for-save-column-in-the-Time-Series/m-p/81458#M36953</link>
      <description>&lt;P&gt;Hi msharp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply but this is not what I want. It is ok because I have found the solution for it.&lt;/P&gt;&lt;P&gt;Thanks alot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 06:03:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-script-for-save-column-in-the-Time-Series/m-p/81458#M36953</guid>
      <dc:creator>ReginaHong</dc:creator>
      <dc:date>2018-10-26T06:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: JSL script for save column in the Time Series</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-script-for-save-column-in-the-Time-Series/m-p/81477#M36960</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/13009"&gt;@ReginaHong&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I am very pleased that you solved the issue yourself.&amp;nbsp; Would you post your solution so all of the user community can see how you solved it?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Oct 2018 11:23:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-script-for-save-column-in-the-Time-Series/m-p/81477#M36960</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-10-26T11:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: JSL script for save column in the Time Series</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-script-for-save-column-in-the-Time-Series/m-p/81905#M37008</link>
      <description>&lt;P&gt;Of course. Below is my solution:&lt;/P&gt;
&lt;P&gt;I put all the TFA as a temporary list into the main. Then Make the output result into data table. Since I just want to save column for the first TFA that appeared in the table, I use that TFA number to search back in the temporary list i created in the main and save that into save column.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;main = {};
obj = dt &amp;lt;&amp;lt; Time Series(
	X( :Time ),
	Y( :Shipment ),
	Input List( :Capacity ),
	Number of Autocorrelation Lags( 20 ),
	Number of Forecast Periods( 11 ),
	Input Series( :Capacity, Number of Autocorrelation Lags( 20 ), Number of Forecast Periods( 11 ) )
);
temp = obj &amp;lt;&amp;lt; Transfer Function(
	Order( 0, 1, 1 ),
	Seasonal( 0, 0, 0, 12 ),
	:Capacity( Order( 1, 1, 1 ), Seasonal( 0, 0, 0, 12 ), Lag( 0 ) ),
	Number of Forecast Periods( 11 ),

);
Insert Into( main, temp );
temp = obj &amp;lt;&amp;lt; Transfer Function(
	Order( 1, 1, 1 ),
	Seasonal( 0, 0, 0, 12 ),
	:Capacity( Order( 1, 1, 1 ), Seasonal( 0, 0, 0, 12 ), Lag( 0 ) ),
	Number of Forecast Periods( 11 ),

);
Insert Into( main, temp );

temp = obj &amp;lt;&amp;lt; Transfer Function(
	Order( 1, 1, 0 ),
	Seasonal( 0, 0, 0, 12 ),
	:Capacity( Order( 1, 1, 1 ), Seasonal( 0, 0, 0, 12 ), Lag( 0 ) ),
	Number of Forecast Periods( 11 ),

);
Insert Into( main, temp );
&amp;nbsp;
temp = obj &amp;lt;&amp;lt; Transfer Function(
	Order( 0, 1, 1 ),
	Seasonal( 0, 0, 0, 12 ),
	:Capacity( Order( 0, 1, 1 ), Seasonal( 0, 0, 0, 12 ), Lag( 0 ) ),
	Number of Forecast Periods( 11 ),

);
Insert Into( main, temp );

temp = obj &amp;lt;&amp;lt; Transfer Function(
	Order( 0, 1, 1 ),
	Seasonal( 0, 0, 0, 12 ),
	:Capacity( Order( 1, 1, 0 ), Seasonal( 0, 0, 0, 12 ), Lag( 0 ) ),
	Number of Forecast Periods( 11 ),

);
Insert Into( main, temp );

temp = obj &amp;lt;&amp;lt; Transfer Function(
	Order( 1, 1, 1 ),
	Seasonal( 0, 0, 0, 12 ),
	:Capacity( Order( 0, 1, 1 ), Seasonal( 0, 0, 0, 12 ), Lag( 0 ) ),
	Number of Forecast Periods( 11 ),

);
Insert Into( main, temp );

temp = obj &amp;lt;&amp;lt; Transfer Function(
	Order( 1, 1, 1 ),
	Seasonal( 0, 0, 0, 12 ),
	:Capacity( Order( 1, 1, 0 ), Seasonal( 0, 0, 0, 12 ), Lag( 0 ) ),
	Number of Forecast Periods( 11 ),

);
Insert Into( main, temp );

temp = obj &amp;lt;&amp;lt; Transfer Function(
	Order( 2, 1, 1 ),
	Seasonal( 0, 0, 0, 12 ),
	:Capacity( Order( 1, 1, 1 ), Seasonal( 0, 0, 0, 12 ), Lag( 0 ) ),
	Number of Forecast Periods( 11 ),

);
Insert Into( main, temp );

obj &amp;lt;&amp;lt; Transfer Function(
	Order( 2, 1, 1 ),
	Seasonal( 0, 0, 0, 12 ),
	:Capacity( Order( 1, 1, 0 ), Seasonal( 0, 0, 0, 12 ), Lag( 0 ) ),
	Number of Forecast Periods( 11 ),

);
Insert Into( main, temp );

temp = obj &amp;lt;&amp;lt; Transfer Function(
	Order( 1, 1, 2 ),
	Seasonal( 0, 0, 0, 12 ),
	:Capacity( Order( 1, 1, 1 ), Seasonal( 0, 0, 0, 12 ), Lag( 0 ) ),
	Number of Forecast Periods( 11 ),

);
Insert Into( main, temp );

temp = obj &amp;lt;&amp;lt; Transfer Function(
	Order( 2, 1, 1 ),
	Seasonal( 0, 0, 0, 12 ),
	:Capacity( Order( 2, 1, 1 ), Seasonal( 0, 0, 0, 12 ), Lag( 0 ) ),
	Number of Forecast Periods( 11 ),

);
Insert Into( main, temp );

temp = obj &amp;lt;&amp;lt; Transfer Function(
	Order( 2, 1, 1 ),
	Seasonal( 0, 0, 0, 12 ),
	:Capacity( Order( 0, 1, 1 ), Seasonal( 0, 0, 0, 12 ), Lag( 0 ) ),
	Number of Forecast Periods( 11 ),

);
Insert Into( main, temp );

temp = obj &amp;lt;&amp;lt; Transfer Function(
	Order( 2, 1, 1 ),
	Seasonal( 0, 0, 0, 12 ),
	:Capacity( Order( 1, 1, 2 ), Seasonal( 0, 0, 0, 12 ), Lag( 0 ) ),
	Number of Forecast Periods( 11 ),

);
Insert Into( main, temp );

temp = obj &amp;lt;&amp;lt; Transfer Function(
	Order( 2, 1, 1 ),
	Seasonal( 0, 0, 0, 12 ),
	:Capacity( Order( 2, 0, 1 ), Seasonal( 0, 0, 0, 12 ), Lag( 0 ) ),
	Number of Forecast Periods( 11 ),

);
Insert Into( main, temp );

temp = obj &amp;lt;&amp;lt; Transfer Function(
	Order( 2, 1, 1 ),
	Seasonal( 0, 0, 0, 12 ),
	:Capacity( Order( 1, 0, 1 ), Seasonal( 0, 0, 0, 12 ), Lag( 0 ) ),
	Number of Forecast Periods( 11 ),

);
Insert Into( main, temp );

temp = obj &amp;lt;&amp;lt; Transfer Function(
	Order( 2, 1, 1 ),
	Seasonal( 0, 0, 0, 12 ),
	:Capacity( Order( 2, 0, 0 ), Seasonal( 0, 0, 0, 12 ), Lag( 0 ) ),
	Number of Forecast Periods( 11 ),

);
Insert Into( main, temp );

temp = obj &amp;lt;&amp;lt; Transfer Function(
	Order( 2, 1, 1 ),
	Seasonal( 0, 0, 0, 12 ),
	:Capacity( Order( 1, 0, 2 ), Seasonal( 0, 0, 0, 12 ), Lag( 0 ) ),
	Number of Forecast Periods( 11 ),

);
Insert Into( main, temp );

temp = obj &amp;lt;&amp;lt; Transfer Function(
	Order( 2, 1, 1 ),
	Seasonal( 0, 0, 0, 12 ),
	:Capacity( Order( 1, 0, 0 ), Seasonal( 0, 0, 0, 12 ), Lag( 0 ) ),
	Number of Forecast Periods( 11 ),

);
Insert Into( main, temp );

temp = obj &amp;lt;&amp;lt; Transfer Function(
	Order( 2, 1, 1 ),
	Seasonal( 0, 0, 0, 12 ),
	:Capacity( Order( 0, 0, 1 ), Seasonal( 0, 0, 0, 12 ), Lag( 0 ) ),
	Number of Forecast Periods( 11 ),

);
Insert Into( main, temp );

datatable = Report( obj )[Table Box( 5 )] &amp;lt;&amp;lt; make into data table;
datatable &amp;lt;&amp;lt; Set Name( "table1" );
datatable &amp;lt;&amp;lt; New Column( "Model2",
	Numeric,
	Continuous,
	formula( Num( Regex( :Model, "\D", "", GLOBALREPLACE ) ) )
);
maxvalue = datatable[1, 11];
dt2 = main[maxvalue] &amp;lt;&amp;lt; Save Columns;
dt2 &amp;lt;&amp;lt; Set Name( "Result1" );
Column( dt2, 4 ) &amp;lt;&amp;lt; Set Name( "Predicted_Shipment_1" );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 14:02:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-script-for-save-column-in-the-Time-Series/m-p/81905#M37008</guid>
      <dc:creator>ReginaHong</dc:creator>
      <dc:date>2018-10-30T14:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: JSL script for save column in the Time Series</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-script-for-save-column-in-the-Time-Series/m-p/186277#M40471</link>
      <description>&lt;P&gt;I'm running across a similar issue, but instead of having many transfer functions to sort through and save only certain ones, I am running the ARIMA analysis on several columns in my source data table. This generates a model for each column. I then want to "save columns" from the Model:AR(1) hot button for each column, and do it via scripting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the obj &amp;lt;&amp;lt; Save Columns approach, which works, but only for the last column where the ARIMA was done. I need to do it for each one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, when I save columns manually, the new data table doesn't come with a "source" script, so it's hard to figure out how to do this with JSL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm really after is only the predicted column from the model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoguhts/feedback on this would help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 12:17:50 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-script-for-save-column-in-the-Time-Series/m-p/186277#M40471</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2019-03-12T12:17:50Z</dc:date>
    </item>
  </channel>
</rss>

