<?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 Difference between &amp;quot;least square&amp;quot; and &amp;quot;generelized linear method&amp;quot; in the fit model in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638087#M83596</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is something that I have not understood between the difference of the results I get when analyzing a small dataset by using fit model with “standard least squares” and then using the Box Cox transformation menu to do a log transformation (λ = 0) versus using the same “fit model” but this time with “generalized linear model” &amp;nbsp;with distribution “Normal” and link function “log”.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the results in the table below. I preent the actual response values (clumn output variables), then a second colulmn with the prediction from the method least squares with the log transformation and finally a third column with the results using the method generalized linear model with normal distribution and log link function. You can clearly see that generalized linear model method does better predictions&lt;STRONG&gt;. I wonder why the least squares method with the log box cox transformation do not give as good results (or similar) as the ones by the generalize linear method with normal distribution and Log link function. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julianveda_3-1685688335930.png" style="width: 520px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53345iF33757A80B98D2B5/image-dimensions/520x176?v=v2" width="520" height="176" role="button" title="Julianveda_3-1685688335930.png" alt="Julianveda_3-1685688335930.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I specify that the terms of the model in both cases are the same (two main effects and one interaction). Knowing what the difference between these two methods is and if I can decide using one or the other without restrictions is crucial since if you se the results below the significance of terms are also different in each case. To be honest, the generalized linear method reflects more accurately the real situation we observe. However, I do not exactly know if I can use freely the generalized linear method. I looked in the documentation but found only general information about some nonnormal cases (binomial count etc) where generalized method can be used, but my question is a little bit more precised.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Effect summary for least squares method with Log box cox transformation (λ = 0)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julianveda_4-1685688335931.png" style="width: 502px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53343iE3E0051B03F83E4E/image-dimensions/502x143?v=v2" width="502" height="143" role="button" title="Julianveda_4-1685688335931.png" alt="Julianveda_4-1685688335931.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Effect summary for Generalized linear method with normal distribution and log link function&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julianveda_5-1685688335931.png" style="width: 453px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53344iE8C75F4ECF051F56/image-dimensions/453x125?v=v2" width="453" height="125" role="button" title="Julianveda_5-1685688335931.png" alt="Julianveda_5-1685688335931.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I provide here below the whole table I you wish to verify/test the method:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julianveda_6-1685688335932.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53346iC8B6D6CFCAE4D3BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julianveda_6-1685688335932.png" alt="Julianveda_6-1685688335932.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reading and I can provide further information if needed.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jun 2023 21:15:19 GMT</pubDate>
    <dc:creator>Julianveda</dc:creator>
    <dc:date>2023-06-08T21:15:19Z</dc:date>
    <item>
      <title>Difference between "least square" and "generelized linear method" in the fit model</title>
      <link>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638087#M83596</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is something that I have not understood between the difference of the results I get when analyzing a small dataset by using fit model with “standard least squares” and then using the Box Cox transformation menu to do a log transformation (λ = 0) versus using the same “fit model” but this time with “generalized linear model” &amp;nbsp;with distribution “Normal” and link function “log”.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See the results in the table below. I preent the actual response values (clumn output variables), then a second colulmn with the prediction from the method least squares with the log transformation and finally a third column with the results using the method generalized linear model with normal distribution and log link function. You can clearly see that generalized linear model method does better predictions&lt;STRONG&gt;. I wonder why the least squares method with the log box cox transformation do not give as good results (or similar) as the ones by the generalize linear method with normal distribution and Log link function. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julianveda_3-1685688335930.png" style="width: 520px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53345iF33757A80B98D2B5/image-dimensions/520x176?v=v2" width="520" height="176" role="button" title="Julianveda_3-1685688335930.png" alt="Julianveda_3-1685688335930.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I specify that the terms of the model in both cases are the same (two main effects and one interaction). Knowing what the difference between these two methods is and if I can decide using one or the other without restrictions is crucial since if you se the results below the significance of terms are also different in each case. To be honest, the generalized linear method reflects more accurately the real situation we observe. However, I do not exactly know if I can use freely the generalized linear method. I looked in the documentation but found only general information about some nonnormal cases (binomial count etc) where generalized method can be used, but my question is a little bit more precised.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Effect summary for least squares method with Log box cox transformation (λ = 0)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julianveda_4-1685688335931.png" style="width: 502px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53343iE3E0051B03F83E4E/image-dimensions/502x143?v=v2" width="502" height="143" role="button" title="Julianveda_4-1685688335931.png" alt="Julianveda_4-1685688335931.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Effect summary for Generalized linear method with normal distribution and log link function&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julianveda_5-1685688335931.png" style="width: 453px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53344iE8C75F4ECF051F56/image-dimensions/453x125?v=v2" width="453" height="125" role="button" title="Julianveda_5-1685688335931.png" alt="Julianveda_5-1685688335931.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I provide here below the whole table I you wish to verify/test the method:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julianveda_6-1685688335932.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53346iC8B6D6CFCAE4D3BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julianveda_6-1685688335932.png" alt="Julianveda_6-1685688335932.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reading and I can provide further information if needed.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 21:15:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638087#M83596</guid>
      <dc:creator>Julianveda</dc:creator>
      <dc:date>2023-06-08T21:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between "least square" and "generelized linear method" in the fit model</title>
      <link>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638129#M83600</link>
      <description>&lt;P&gt;Graphing your data reveals the nature of the model you need to fit to this data. There is a quadratic effect of B that interacts with factor A:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="malcolm_moore1_0-1685703610710.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53355i61EE66C07C5718E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="malcolm_moore1_0-1685703610710.png" alt="malcolm_moore1_0-1685703610710.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This means that the appropriate least squares model to fit to this data is:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="malcolm_moore1_1-1685703840088.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53356iE27E27DCC69F9F7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="malcolm_moore1_1-1685703840088.png" alt="malcolm_moore1_1-1685703840088.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Which gives:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="malcolm_moore1_2-1685703901883.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53357i0E67637EC589ADDF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="malcolm_moore1_2-1685703901883.png" alt="malcolm_moore1_2-1685703901883.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Note the dramatic change in the profiler regarding the effect of Factor 2 on the output variable when switching factor 1 to the B setting:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="malcolm_moore1_3-1685704009017.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53358i7CBB69695B5793D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="malcolm_moore1_3-1685704009017.png" alt="malcolm_moore1_3-1685704009017.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You will find this profiler looks very similar to that you are getting via your General Linear Model approach which is able to model the nonlinear relationship in your data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The short answer is: your least squares model and general linear model are not equivalent with regard to their ability to model the curvature in this particular data. Graphing the data prior to specifying the model will help to work out the model to specify in standard Least Squares.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 11:12:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638129#M83600</guid>
      <dc:creator>malcolm_moore1</dc:creator>
      <dc:date>2023-06-02T11:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between "least square" and "generelized linear method" in the fit model</title>
      <link>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638184#M83603</link>
      <description>&lt;P&gt;What led you to apply a transform to the output? The Actual by Predicted plot does not exhibit a pattern:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="actual.PNG" style="width: 345px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53363iF5A8E688D6B33B0E/image-size/large?v=v2&amp;amp;px=999" role="button" title="actual.PNG" alt="actual.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Neither does the Residual by Predicted plot:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="resid.PNG" style="width: 497px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53364iC8061E2D8EEED3E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="resid.PNG" alt="resid.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The wide 95% confidence interval on Lambda in the transform function includes 1, the identity transform:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="box.PNG" style="width: 445px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53365i566185DBD46AA737/image-size/large?v=v2&amp;amp;px=999" role="button" title="box.PNG" alt="box.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have a small data set with which to evaluate transforms.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 12:32:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638184#M83603</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2023-06-02T12:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between "least square" and "generelized linear method" in the fit model</title>
      <link>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638188#M83604</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/48166"&gt;@Julianveda&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome in the Community !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Transforming the response with log is indeed not the same as using a GLM with log link. It's like comparing the average of the log response, versus the log of the average response.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Applying a non-linear (e.g., log, inverse) transformation to the dependent variables not only normalizes the residuals, but also distorts the ratio scale properties of measured variables. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;On your example, we can see that using log transformation with a standard least squares model tends to underperform for bigger Y values, as differences in big Y values lead to very small log differences (it "shrinks" the differences because of the log transformation).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditor_6cf740e65f62dVictor_G_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_2-1685710492384.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53366iC4D43BBF1B603FB0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_2-1685710492384.png" alt="Victor_G_2-1685710492384.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditor_6cf740e65f62dVictor_G_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;Example with rows 1 and 7 (output difference is equal to 30,43), where the difference of the log of the individual responses is equal to 0,237 whereas the log of the difference between the row is 1,483.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Applying GLM and setting up this type of&amp;nbsp;model with link function enable to stay in the original scale of the data, using a link function to transform the mean into a linear function of the predictor variables and a variance function to allow for variance heterogeneity in the analysis rather than trying to transform it away (for example through log transform).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I added the datatable and scripts used for the comparison, and if other experienced users want to use the dataset for further explanations.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Some references for further explanations/reading :&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://stats.stackexchange.com/questions/47840/linear-model-with-log-transformed-response-vs-generalized-linear-model-with-log" target="_blank" rel="noopener"&gt;https://stats.stackexchange.com/questions/47840/linear-model-with-log-transformed-response-vs-generalized-linear-model-with-log&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="http://faculty.washington.edu/heagerty/Courses/b571/homework/Lindsey-Jones-1998.pdf" target="_blank" rel="noopener"&gt;http://faculty.washington.edu/heagerty/Courses/b571/homework/Lindsey-Jones-1998.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="http://www.leg.ufpr.br/~joel/Rmodelling/Slides/transforms.pdf" target="_blank" rel="noopener"&gt;http://www.leg.ufpr.br/~joel/Rmodelling/Slides/transforms.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;A href="https://www.frontiersin.org/articles/10.3389/fpsyg.2015.01171/full" target="_blank" rel="noopener"&gt;https://www.frontiersin.org/articles/10.3389/fpsyg.2015.01171/full&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp;you can use the dataset I attached, it shows some patterns in the actual vs. predicted and residuals :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_0-1685711008971.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53367iEE6F77CF19984F43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_0-1685711008971.png" alt="Victor_G_0-1685711008971.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_1-1685711028961.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53368iF7F6B6A8EB678C25/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_1-1685711028961.png" alt="Victor_G_1-1685711028961.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope you'll better understand the difference between the two modeling techniques.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 13:11:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638188#M83604</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2023-06-02T13:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between "least square" and "generelized linear method" in the fit model</title>
      <link>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638219#M83606</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6620"&gt;@malcolm_moore1&lt;/a&gt;&amp;nbsp;for your reply. I forgot to mention that for us a cuadratic effect of factor 2 does not make physic sense. Therefore, we decided to only consider the two main effects and the interaction and look for the best possible model using these. It was under this condition that we found that least squares seem underperformed when compared to generalized linear model. However, I do not master yet enough the generalized linear model to propose it as a solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Concerning the graphic builder, I actually use it and thanks to that I realized the exponential fitting that was what led me to try logarithmic transformations.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 14:39:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638219#M83606</guid>
      <dc:creator>Julianveda</dc:creator>
      <dc:date>2023-06-02T14:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between "least square" and "generelized linear method" in the fit model</title>
      <link>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638222#M83607</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp; for your answer. What led me to look for a finer solution was the fact that the analysis by "least squares" did not show a significance for factor 1, but we were in reality observing it. Also, as explain in my reply above, plotting in the graphing builder we observed exponential behavior.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 14:34:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638222#M83607</guid>
      <dc:creator>Julianveda</dc:creator>
      <dc:date>2023-06-02T14:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between "least square" and "generelized linear method" in the fit model</title>
      <link>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638251#M83608</link>
      <description>&lt;P&gt;Please look at the profiler for your generalized linear model. This shows your generalized linear model is representing the relationships in your data in the same way as the model I proposed by using standard least squares (representing the effect of Factor 2 as non-linear). If a non-linear effect makes no physical sense then you shouldn't be using the generalized linear model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="malcolm_moore1_0-1685717025791.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53371i4593095D49A0F8E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="malcolm_moore1_0-1685717025791.png" alt="malcolm_moore1_0-1685717025791.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please go back to the least squares model with linear and two factor interaction effects and turn on the option for lack of fit test. You will see evidence of lack of fit:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="malcolm_moore1_1-1685717242607.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53375iDE6834C1E504D793/image-size/medium?v=v2&amp;amp;px=400" role="button" title="malcolm_moore1_1-1685717242607.png" alt="malcolm_moore1_1-1685717242607.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the effect of factor X2 cannot be non-linear, then I encourage you to think about what is responsible for the lack of fit. For example is there another factor that was not controlled or measured in your experiment that might also be influencing your output? There is something going on in your process that is not explained by the linear effect of X1, the linear effect of X2, or the interaction effect of X1*X2. This lack of fit is responsible for the poor predictive quality of the least squares model for rows 2 and 4.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 14:56:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638251#M83608</guid>
      <dc:creator>malcolm_moore1</dc:creator>
      <dc:date>2023-06-02T14:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between "least square" and "generelized linear method" in the fit model</title>
      <link>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638264#M83610</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11568"&gt;@Victor_G&lt;/a&gt;&amp;nbsp; for this very interesting and insightful information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be honest I do not understand everything in the provided links, but if I understood well the use of GLM can be justified in my case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please correct me if I'm wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Julian&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 15:02:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638264#M83610</guid>
      <dc:creator>Julianveda</dc:creator>
      <dc:date>2023-06-02T15:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between "least square" and "generelized linear method" in the fit model</title>
      <link>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638324#M83617</link>
      <description>&lt;P&gt;Lack of fit can also mask effects. You did not expect a quadratic effect, but the limited data suggests curvature, nevertheless.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 16:16:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638324#M83617</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2023-06-02T16:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between "least square" and "generelized linear method" in the fit model</title>
      <link>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638464#M83628</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6620"&gt;@malcolm_moore1&lt;/a&gt;&amp;nbsp;for your answer and recommendations. It is not non-linearity that does not make physical sense in our situation, it is the cuadratic term or higher interaction terms. The GLM is not linear but precisely describes this situation using only terms that for us also mean something from a mechanistic point of view.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2023 04:35:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638464#M83628</guid>
      <dc:creator>Julianveda</dc:creator>
      <dc:date>2023-06-03T04:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between "least square" and "generelized linear method" in the fit model</title>
      <link>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638465#M83629</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/5358"&gt;@Mark_Bailey&lt;/a&gt;&amp;nbsp;for your answer. It is not curvature or non linearity that does not&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;make physical sense in our situation, it is the cuadratic term or higher interaction terms. The GLM is not linear but precisely describes this situation using other mathematical functions (differnt from quadratic or high order polynomials) and using only terms that for us also mean something from a mechanistic point of view.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2023 04:40:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638465#M83629</guid>
      <dc:creator>Julianveda</dc:creator>
      <dc:date>2023-06-03T04:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between "least square" and "generelized linear method" in the fit model</title>
      <link>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638738#M83650</link>
      <description>&lt;P&gt;This is great justification for using the GLM model if it better represents your expectations based on scientific knowledge. If there are other mechanistic relationships you wish to represent in the future then you might also wish to explore Fit Curve or Non-linear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise it is helpful to bear in mind that many statistical methods are empirical by nature - they give a model that approximates the trends in your data but do not aim to describe the underlying mechanisms. A statistical/empirical model may be sufficient to achieve a goal within the range of the data collected, e.g. suggest settings of the X variables that achieve desired outcomes of the Y variables associated with an improvement or optimisation goal based on experimentation.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 09:55:45 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Difference-between-quot-least-square-quot-and-quot-generelized/m-p/638738#M83650</guid>
      <dc:creator>malcolm_moore1</dc:creator>
      <dc:date>2023-06-05T09:55:45Z</dc:date>
    </item>
  </channel>
</rss>

