<?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 Repeated k-fold Cross-Validation with Stepwise Regression (JSL Script?) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Repeated-k-fold-Cross-Validation-with-Stepwise-Regression-JSL/m-p/6768#M6762</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many of us know the variability that k-fold cross validated stepwise regression might have with small samples. It is often suggested to repeat this procedure 50-100 times in order to increase the realibility of the outputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if there is a way in JMP to repeat this procedure? It will save me TONS of time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANK YOU&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 May 2013 20:03:19 GMT</pubDate>
    <dc:creator>triunk</dc:creator>
    <dc:date>2013-05-20T20:03:19Z</dc:date>
    <item>
      <title>Repeated k-fold Cross-Validation with Stepwise Regression (JSL Script?)</title>
      <link>https://community.jmp.com/t5/Discussions/Repeated-k-fold-Cross-Validation-with-Stepwise-Regression-JSL/m-p/6768#M6762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many of us know the variability that k-fold cross validated stepwise regression might have with small samples. It is often suggested to repeat this procedure 50-100 times in order to increase the realibility of the outputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if there is a way in JMP to repeat this procedure? It will save me TONS of time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANK YOU&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2013 20:03:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Repeated-k-fold-Cross-Validation-with-Stepwise-Regression-JSL/m-p/6768#M6762</guid>
      <dc:creator>triunk</dc:creator>
      <dc:date>2013-05-20T20:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Repeated k-fold Cross-Validation with Stepwise Regression (JSL Script?)</title>
      <link>https://community.jmp.com/t5/Discussions/Repeated-k-fold-Cross-Validation-with-Stepwise-Regression-JSL/m-p/48351#M27524</link>
      <description>&lt;P&gt;Below is an example script that repeats k-fold crossvalidation on the same stepwise model 10 times. Copied from the JMP Scripting Index, the first part of this script runs a stepwise regression model and then performs a k-fold crossvalidation with 5 folds. The second piece makes the table box containing the step history and best model statistics into a data table for each iteration, and concatenates all the data tables together into one K-Fold Results table. You can of course choose to make a&amp;nbsp;different table box of results into an output table, or none at all.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&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/Fitness.jmp" );
For( i = 1, i &amp;lt;= 10, i++,
obj = dt &amp;lt;&amp;lt; Fit Model( Y( :Oxy ), Effects( :Runtime, :Weight, :RunPulse, :RstPulse, :MaxPulse ), Personality( Stepwise ), Run );
obj &amp;lt;&amp;lt; Name( "K-Fold Crossvalidation" )(5);
obj &amp;lt;&amp;lt; Finish;

kfold = obj &amp;lt;&amp;lt; report;
tablebox = kfold[Table Box( 3 )];

output = tablebox &amp;lt;&amp;lt; Make Into Data Table( "K-Fold Results" );
If( i != 1,
Data Table( "K-Fold Results" ) &amp;lt;&amp;lt; Concatenate( Data Table( "K-Fold Results " || Char( i ) ), Append to first table );
);
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 22:14:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Repeated-k-fold-Cross-Validation-with-Stepwise-Regression-JSL/m-p/48351#M27524</guid>
      <dc:creator>sseligman</dc:creator>
      <dc:date>2017-12-08T22:14:03Z</dc:date>
    </item>
  </channel>
</rss>

