topic How to run standard least square regression 1000 times with different validations? in Discussions
https://community.jmp.com/t5/Discussions/How-to-run-standard-least-square-regression-1000-times-with/m-p/66587#M34458
<P>How to run standard least square regression 1000 times with different validations (bootstrap: 1000 validation and training groups)? In the results file, there are RSquares for different groups and 1000 iterations, and the factor profiling results. Thank you.</P><P> </P><P>Dear all,</P><P>I am a new learner of JMP Pro. I got the data of 7 different predictors and one response factor. I want to do the standard least square regression 1000 times with different validations. To compare this analysis with neural networks, this can do this easily with the script Validation Method („Holdback“, 0.1). </P><P>Now I can get the RSquares successfully. But I still do not know how to get the factor profiling (the importance of each predictor) results for different validations.</P><P> </P><P>Previously, I was replied from a kind JMP staff that I can use this script to get RSquares for different validations in Least Square Regression. (<A href="https://community.jmp.com/t5/Discussions/How-to-make-different-validation-automatically-using-JMP-script/m-p/65523" target="_blank">https://community.jmp.com/t5/Discussions/How-to-make-different-validation-automatically-using-JMP-script/m-p/65523</A>)</P><PRE>dt<<Make Validation Column(
Training Set( 0.90 ),
Validation Set( 0.10 ),
Test Set( 0.00 ),
Formula Random</PRE><P> </P><P>Thank you. </P>Mon, 06 Aug 2018 10:05:06 GMTS_Xue2018-08-06T10:05:06ZHow to run standard least square regression 1000 times with different validations?
https://community.jmp.com/t5/Discussions/How-to-run-standard-least-square-regression-1000-times-with/m-p/66587#M34458
<P>How to run standard least square regression 1000 times with different validations (bootstrap: 1000 validation and training groups)? In the results file, there are RSquares for different groups and 1000 iterations, and the factor profiling results. Thank you.</P><P> </P><P>Dear all,</P><P>I am a new learner of JMP Pro. I got the data of 7 different predictors and one response factor. I want to do the standard least square regression 1000 times with different validations. To compare this analysis with neural networks, this can do this easily with the script Validation Method („Holdback“, 0.1). </P><P>Now I can get the RSquares successfully. But I still do not know how to get the factor profiling (the importance of each predictor) results for different validations.</P><P> </P><P>Previously, I was replied from a kind JMP staff that I can use this script to get RSquares for different validations in Least Square Regression. (<A href="https://community.jmp.com/t5/Discussions/How-to-make-different-validation-automatically-using-JMP-script/m-p/65523" target="_blank">https://community.jmp.com/t5/Discussions/How-to-make-different-validation-automatically-using-JMP-script/m-p/65523</A>)</P><PRE>dt<<Make Validation Column(
Training Set( 0.90 ),
Validation Set( 0.10 ),
Test Set( 0.00 ),
Formula Random</PRE><P> </P><P>Thank you. </P>Mon, 06 Aug 2018 10:05:06 GMThttps://community.jmp.com/t5/Discussions/How-to-run-standard-least-square-regression-1000-times-with/m-p/66587#M34458S_Xue2018-08-06T10:05:06ZRe: How to run standard least square regression 1000 times with different validations?
https://community.jmp.com/t5/Discussions/How-to-run-standard-least-square-regression-1000-times-with/m-p/66601#M34461
I think what you want to do (assuming you have JMP Pro) is just right click on the statistic that you want to bootstrap on (i.e. the RSquare the Cross-validation section of the Fit Model Report) and select Bootstrap. You can then choose the number of iterations and it will generate a data table and report of the results.Mon, 06 Aug 2018 13:59:15 GMThttps://community.jmp.com/t5/Discussions/How-to-run-standard-least-square-regression-1000-times-with/m-p/66601#M34461MikeD_Anderson2018-08-06T13:59:15ZRe: How to run standard least square regression 1000 times with different validations?
https://community.jmp.com/t5/Discussions/How-to-run-standard-least-square-regression-1000-times-with/m-p/66650#M34469
<P>Thank you for your reply. Yes I am using the JMP Pro. Sorry that I did not find the statistic used for bootstrap.</P><P> </P><P> </P><P>Here is my script: I just want to run this analysis for 1000 times using 1000 different validations. Thank you.</P><PRE>Fit Model(
Validation( :Validation ),
Y( :Std meanDT ),
Effects(
:Std wl
),
Personality( "Standard Least Squares" ),
Emphasis( "Effect Leverage" ),
Run(
Profiler(
1,
Confidence Intervals( 1 ),
Dependent Resampled Inputs( 1 ),
Arrange in Rows( 4 ),
Reorder X Variables(
:Std wl
),
Term Value(
Std wl( 0, Lock( 0 ), Show( 1 ) )
)
),
:Std meanDT << {Lack of Fit( 0 ), Plot Actual by Predicted( 1 ),
Plot Regression( 0 ), Plot Residual by Predicted( 1 ),
Plot Effect Leverage( 1 )}
)
); </PRE><P> </P>Tue, 07 Aug 2018 16:17:23 GMThttps://community.jmp.com/t5/Discussions/How-to-run-standard-least-square-regression-1000-times-with/m-p/66650#M34469S_Xue2018-08-07T16:17:23ZRe: How to run standard least square regression 1000 times with different validations?
https://community.jmp.com/t5/Discussions/How-to-run-standard-least-square-regression-1000-times-with/m-p/66651#M34470
<P>I’m not aware of being able to bootstrap via a command in JSL. The way I was proposing was through the GUI. You might have a look at the example under the Resample Freq heading in the scripting index for an idea about how to set it up.</P>
<P> </P>
<P>UPDATE - There is a JSL message function (search the scripting index for "bootstrap" to find it)... you learn something new every day!! LOL.<BR /><BR />M</P>Wed, 08 Aug 2018 00:31:37 GMThttps://community.jmp.com/t5/Discussions/How-to-run-standard-least-square-regression-1000-times-with/m-p/66651#M34470MikeD_Anderson2018-08-08T00:31:37ZRe: How to run standard least square regression 1000 times with different validations?
https://community.jmp.com/t5/Discussions/How-to-run-standard-least-square-regression-1000-times-with/m-p/66865#M34509
<P>Attached is a script written for Chapter 9 of JSL Companion, 2nd Edition. It demonstrates:</P><UL><LI>a bootstrap of a 2 sample t-test from a Oneway analysis (only 100 was chosen)</LI><LI>how to get the results</LI><LI>how to plot the results</LI><LI>as an extra is shows how to order customizations by sending clicks to the customize framebox window.</LI></UL><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"><img src="https://community.jmp.com/t5/image/serverpage/image-id/11886iA9D7DFC623CD74EE/image-size/large?v=v2&px=999" role="button" title="image.png" alt="image.png" /></span></P>Tue, 07 Aug 2018 09:05:54 GMThttps://community.jmp.com/t5/Discussions/How-to-run-standard-least-square-regression-1000-times-with/m-p/66865#M34509gzmorgan02018-08-07T09:05:54Z