topic Re: Failed to converge(step halving limit). Solution for this error? in Discussions
https://community.jmp.com/t5/Discussions/Failed-to-converge-step-halving-limit-Solution-for-this-error/m-p/244521#M48173
<P>I don’t have JMP at the moment. Do you have a separation problem? Did you select the Firth bias adjustment option in the Fit Model dialog?</P>Fri, 31 Jan 2020 16:31:09 GMTmarkbailey2020-01-31T16:31:09ZFailed to converge(step halving limit). Solution for this error?
https://community.jmp.com/t5/Discussions/Failed-to-converge-step-halving-limit-Solution-for-this-error/m-p/244511#M48169
<P>I have 3 continuous factors and one of the outcome of the study was if product pass or fail (data is attached), when I try to run ordinal logistic for this I get an error 'ALERT:FAILED TO CONVERGE(STEP-HALVING LIMIT)' and after the alert it gives me an output but not sure if the results are reliable or not. Why am I getting this error and how to fix this?</P>Fri, 31 Jan 2020 15:43:22 GMThttps://community.jmp.com/t5/Discussions/Failed-to-converge-step-halving-limit-Solution-for-this-error/m-p/244511#M48169billi2020-01-31T15:43:22ZRe: Failed to converge(step halving limit). Solution for this error?
https://community.jmp.com/t5/Discussions/Failed-to-converge-step-halving-limit-Solution-for-this-error/m-p/244521#M48173
<P>I don’t have JMP at the moment. Do you have a separation problem? Did you select the Firth bias adjustment option in the Fit Model dialog?</P>Fri, 31 Jan 2020 16:31:09 GMThttps://community.jmp.com/t5/Discussions/Failed-to-converge-step-halving-limit-Solution-for-this-error/m-p/244521#M48173markbailey2020-01-31T16:31:09ZRe: Failed to converge(step halving limit). Solution for this error?
https://community.jmp.com/t5/Discussions/Failed-to-converge-step-halving-limit-Solution-for-this-error/m-p/244525#M48174
<P><LI-USER uid="5358"></LI-USER> I think this is separation problem (I was reading few articles and I think its separation problem). No I did not select <SPAN>Firth bias adjustment option in the Fit Model dialog</SPAN></P>Fri, 31 Jan 2020 16:34:11 GMThttps://community.jmp.com/t5/Discussions/Failed-to-converge-step-halving-limit-Solution-for-this-error/m-p/244525#M48174billi2020-01-31T16:34:11ZRe: Failed to converge(step halving limit). Solution for this error?
https://community.jmp.com/t5/Discussions/Failed-to-converge-step-halving-limit-Solution-for-this-error/m-p/244530#M48176
<P>I think the problem is that you have "perfect separation" in the data. See the 3D scatterplot of the 3 factors, color/marked by Pass/Fail (pass is green pyramid, fail is red circle). You can draw a plane in that space that separates the pass/fail results. To do a logistic regression with out convergence errors, you need some overlap of passing and failing conditions in the factor space. If you do the fit in Generalized Regression with main effects only, you will see that one of the factor effects cannot be estimated. </P><P> </P><P>It is a bit curious that when you do the logistic regression fit with the main effects + two factor interactions in Generalized Regression, you don't get the error (it must be doing some parameter regularization?), but for that fit you see that all of the main affects are not significant but the two factor interactions are all significant. That is also very unusual, indicating the model is over specified. Also the confidence intervals for the parameter estimates are huge, also indicating the problem of separation. </P><DIV class="mceNonEditable lia-copypaste-placeholder"> </DIV><DIV class="mceNonEditable lia-copypaste-placeholder"> </DIV><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1-31-2020 11-26-23 AM.png" style="width: 663px;"><img src="https://kvoqx44227.i.lithium.com/t5/image/serverpage/image-id/21463iDE77315033E0C530/image-size/large?v=1.0&px=999" title="1-31-2020 11-26-23 AM.png" alt="1-31-2020 11-26-23 AM.png" /></span></P><P> </P><P>What you can try to do is fit the ordinal logistic regression model using the "Ridge" estimation method (which will do parameter shrinkage and help overcome some of the separation problems, and use leave-one-out as the validation method (used to choose the optimal ridging parameter). This gives a stable model fit, but you still need to check to see if this model makes sense. </P><P> </P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Selection.png" style="width: 400px;"><img src="https://kvoqx44227.i.lithium.com/t5/image/serverpage/image-id/21465iF3259EA2780FC3C1/image-size/medium?v=1.0&px=400" title="Selection.png" alt="Selection.png" /></span></P><P> </P>Fri, 31 Jan 2020 16:40:26 GMThttps://community.jmp.com/t5/Discussions/Failed-to-converge-step-halving-limit-Solution-for-this-error/m-p/244530#M48176MathStatChem2020-01-31T16:40:26ZRe: Failed to converge(step halving limit). Solution for this error?
https://community.jmp.com/t5/Discussions/Failed-to-converge-step-halving-limit-Solution-for-this-error/m-p/244534#M48178
<P>The firth bias adjustment isn't available anymore as an option in Fit Model.</P><P> </P><P>I also noticed the "defect" variable is specified as Ordinal. Change it to be Nominal. It at least won't give you the step-halving error in Fit Model, and then the output will tell you that all the parameter estimates are unstable (indicating separation).</P>Fri, 31 Jan 2020 16:43:40 GMThttps://community.jmp.com/t5/Discussions/Failed-to-converge-step-halving-limit-Solution-for-this-error/m-p/244534#M48178MathStatChem2020-01-31T16:43:40ZRe: Failed to converge(step halving limit). Solution for this error?
https://community.jmp.com/t5/Discussions/Failed-to-converge-step-halving-limit-Solution-for-this-error/m-p/244539#M48180
<P>Oh wait, the Firth bias adjustment is available if you choose Generalized Linear Model as the Personality in Fit Model, but then you have to specify the distribution (Binomial) and the link function (logit). </P><P> </P><P>I still think the ridge estimation method in Generalized Regression is better though, for this situation.</P>Fri, 31 Jan 2020 16:46:58 GMThttps://community.jmp.com/t5/Discussions/Failed-to-converge-step-halving-limit-Solution-for-this-error/m-p/244539#M48180MathStatChem2020-01-31T16:46:58ZRe: Failed to converge(step halving limit). Solution for this error?
https://community.jmp.com/t5/Discussions/Failed-to-converge-step-halving-limit-Solution-for-this-error/m-p/244679#M48192
<P>My mistake! I was thinking 'logistic regression' but it is not the Nominal Logistic or Ordinal Logistic personality. It is the Generalized Linear Model personality. It offers the Firth bias adjustment with a binary response.</P>Fri, 31 Jan 2020 20:17:33 GMThttps://community.jmp.com/t5/Discussions/Failed-to-converge-step-halving-limit-Solution-for-this-error/m-p/244679#M48192markbailey2020-01-31T20:17:33ZRe: Failed to converge(step halving limit). Solution for this error?
https://community.jmp.com/t5/Discussions/Failed-to-converge-step-halving-limit-Solution-for-this-error/m-p/244705#M48194
<P><LI-USER uid="4467"></LI-USER> Thank you for detailed response. The solution you mentioned gave the model that will work but when I tried to do it I am getting different results (In parameter etimates table I am not all the main effects as well as two way interactions listed and none of these are significant). Is there something I am missing here?</P><P><span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="billi_0-1580503414005.png" style="width: 400px;"><img src="https://kvoqx44227.i.lithium.com/t5/image/serverpage/image-id/21472i95C1717DFBAC3D5D/image-size/medium?v=1.0&px=400" title="billi_0-1580503414005.png" alt="billi_0-1580503414005.png" /></span></P><P>Also, as you mentioned if I change this variable from ordinal to nominal it changes distribution to 'multinomial' and gives back model with no significant results.</P>Fri, 31 Jan 2020 20:49:47 GMThttps://community.jmp.com/t5/Discussions/Failed-to-converge-step-halving-limit-Solution-for-this-error/m-p/244705#M48194billi2020-01-31T20:49:47Z