topic Re: Regression functions in JMP in Discussions
https://community.jmp.com/t5/Discussions/Regression-functions-in-JMP/m-p/322833#M57269
<P>There are many confusing or unclear points in your original post. So rather than parse through them I'll focus my comments on question #1. Answer: Yes. Have you taken a look at JMP documentation? There are literally scores of regression and non regression methods in JMP...ranging from good old fashioned ordinary least squares, to more elegant/flexible general linear models, to completely non linear/non regression based methods such as the Partition and Neural Network platforms.</P>Fri, 16 Oct 2020 19:51:44 GMTP_Bartell2020-10-16T19:51:44ZRegression functions in JMP
https://community.jmp.com/t5/Discussions/Regression-functions-in-JMP/m-p/322814#M57268
<P>Are there any pre-existing functions in JMP for some of the regressions performed by Fit Y by X or the Fit Curve platforms?</P><P>For most of my code, when I want the parameters for a 3P or 2nd Order polynomial, etc. I will call the platform in JMP with a BY variable and then 'make combined data table'. However, the one downside is that JMP "needs" to render the graphics in order to grab the data table...<BR /><BR /></P><P>Well, with larger data, the BY variable is far too large and JMP either dies, runs out of RAM or has other issues when trying to do this operation (one of my larger sets has a BY variable with about 40k unique values).</P><P> </P><P>One 'fix' would be to just remove the by, and call the platform in a FOR loop for each of the data sets separately. I am not sure that would be faster or not ... Ideally, I could create a single matrix or series of matricies and quickly get parameters for each set of data. This could be coded into a JSL layer function, but if functions exist in JMP, the overhead would be better controlled ...<BR /><BR /></P><P>To summarize:</P><P>1) Does JMP have any existing functions that can calculate parameter coefficients for anything beyond basic linear regression<BR />2) If not, are there better ways to accomplish my goals within current JMP platforms?<BR />3) Are there JSL functions people have made which can do various regressions and return the coefficients</P><P> </P><P>Thanks!</P><P> </P>Fri, 16 Oct 2020 19:08:16 GMThttps://community.jmp.com/t5/Discussions/Regression-functions-in-JMP/m-p/322814#M57268nathan-clark2020-10-16T19:08:16ZRe: Regression functions in JMP
https://community.jmp.com/t5/Discussions/Regression-functions-in-JMP/m-p/322833#M57269
<P>There are many confusing or unclear points in your original post. So rather than parse through them I'll focus my comments on question #1. Answer: Yes. Have you taken a look at JMP documentation? There are literally scores of regression and non regression methods in JMP...ranging from good old fashioned ordinary least squares, to more elegant/flexible general linear models, to completely non linear/non regression based methods such as the Partition and Neural Network platforms.</P>Fri, 16 Oct 2020 19:51:44 GMThttps://community.jmp.com/t5/Discussions/Regression-functions-in-JMP/m-p/322833#M57269P_Bartell2020-10-16T19:51:44ZRe: Regression functions in JMP
https://community.jmp.com/t5/Discussions/Regression-functions-in-JMP/m-p/322840#M57273
<P>Echoing <LI-USER uid="14122"></LI-USER> there are many options to model data. Regarding #2, <STRONG>I don't understand what your goal is?</STRONG> It sounds like you want to create >1st order polynomials. Is this from observational data or from an experiment? I don't understand what you mean when you say "<SPAN> I will call the platform in JMP with a BY variable " ? What platform?</SPAN></P><P><SPAN>Not to be </SPAN>belligerent, but you do realize the reason linear regression is called <EM>linear</EM> is because the coefficients are linear, not the terms in the model.</P>Fri, 16 Oct 2020 20:29:21 GMThttps://community.jmp.com/t5/Discussions/Regression-functions-in-JMP/m-p/322840#M57273statman2020-10-16T20:29:21ZRe: Regression functions in JMP
https://community.jmp.com/t5/Discussions/Regression-functions-in-JMP/m-p/322844#M57276
<P>Rather than forcing JMP to create a data table from the display output, I have found that many times it is easier to go directly to the table of interest and extract the individual values. This technique can be used to either generate all of the output with a By clause and then going through the display, or by generating one display at a time, extracting what you want, saving it to a table or a list or a matrix, and then closing the output and moving on the the next regression.</P>
<P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="reg.PNG" style="width: 522px;"><img src="https://community.jmp.com/t5/image/serverpage/image-id/27462iCE88564ED75ABF3F/image-size/large?v=1.0&px=999" role="button" title="reg.PNG" alt="reg.PNG" /></span></P>
<PRE><CODE class=" language-jsl">Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/semiconductor capability.jmp" );
biv = dt << Bivariate(
invisible,
Y( :NPN1 ),
X( :PNP1 ),
Fit Special( Degree( 2 ), Centered Polynomial( 0 ), {Line Color( "Medium Dark Red" )} ),
by( :site ) // Where( :SITE == 1 )
);
dtOut = New Table( "The Ouput",
New Column( "Name", character ),
New Column( "Intercept" ),
New Column( "Beta" ),
New Column( "Beta^2" )
);
dtOut << add rows( N Items( biv ) );
For( i = 1, i <= N Items( biv ), i++,
dtOut:Name[i] = Word( -1, Report( biv[i] )[Outline Box( 1 )] << get title, " " );
values = (Report( biv[i] )["Parameter Estimates"][Number Col Box( 1 )]) << get;
dtOut:Intercept[i] = values[1];
dtOut:Beta[i] = values[2];
dtOut:Name( "Beta^2" )[i] = values[1];
);
biv << close window;</CODE></PRE>
<P> </P>Fri, 16 Oct 2020 21:04:54 GMThttps://community.jmp.com/t5/Discussions/Regression-functions-in-JMP/m-p/322844#M57276txnelson2020-10-16T21:04:54ZRe: Regression functions in JMP
https://community.jmp.com/t5/Discussions/Regression-functions-in-JMP/m-p/322845#M57277
<P>Nonlinear platform can fit Parameters for freely definable formulas.</P><P>Please check out corresponding documentation.</P>Fri, 16 Oct 2020 21:09:57 GMThttps://community.jmp.com/t5/Discussions/Regression-functions-in-JMP/m-p/322845#M57277Georg2020-10-16T21:09:57ZRe: Regression functions in JMP
https://community.jmp.com/t5/Discussions/Regression-functions-in-JMP/m-p/323151#M57310
<P>Thanks to everyone so far for their comments. Let me try to clarify some. Basically, I have a data set that contains ~40k subsets. Typically to get regression parameters I would go a Fit Curve or a Fit Y by X and user the BY variable in the platform to break the graphs into the subsets and then fit my line (in this case a 2nd order polynomial, but other times a 3P). From what I have seen Fit Curve and Fit Y by X need to render all the graphics to create the lines and save the parameters, costing a lot of overhead.</P><P>I wasn't sure if there was a way to do this kind of thing without rendering the graphics - like a stand alone function that only produced the parameters from the fit desired.</P>Mon, 19 Oct 2020 12:30:02 GMThttps://community.jmp.com/t5/Discussions/Regression-functions-in-JMP/m-p/323151#M57310nathan-clark2020-10-19T12:30:02ZRe: Regression functions in JMP
https://community.jmp.com/t5/Discussions/Regression-functions-in-JMP/m-p/323154#M57312
<P>I should have explicitly stated, that I am not aware of a direct function to create the desired Polynomial or 3P parameters. My suggestion of getting the results directly from "Invisible" output, is a suggestion to reduce the memory requirements of creating output data tables.</P>Mon, 19 Oct 2020 12:46:23 GMThttps://community.jmp.com/t5/Discussions/Regression-functions-in-JMP/m-p/323154#M57312txnelson2020-10-19T12:46:23ZRe: Regression functions in JMP
https://community.jmp.com/t5/Discussions/Regression-functions-in-JMP/m-p/323315#M57314
<P><LI-USER uid="2687"></LI-USER> Yes, I have played with that in the past, and making the table invisible didn't seem to make the report invisible or private as well ... I think having the report private would also be a work around to avoid the overhead of rendering the graphics.</P>Mon, 19 Oct 2020 13:07:33 GMThttps://community.jmp.com/t5/Discussions/Regression-functions-in-JMP/m-p/323315#M57314nathan-clark2020-10-19T13:07:33ZRe: Regression functions in JMP
https://community.jmp.com/t5/Discussions/Regression-functions-in-JMP/m-p/323975#M57334
<P>Have you considered using Fit Model with the Minimal Report emphasis? There are no graphics there to render.</P>Tue, 20 Oct 2020 01:31:15 GMThttps://community.jmp.com/t5/Discussions/Regression-functions-in-JMP/m-p/323975#M57334Dan_Obermiller2020-10-20T01:31:15Z