I’ve got a serious problem with the logistic regression results from an R snippet node which is leading to some incorrect and downright embarrassing likelihood conclusions. Here are the correct results I’ve verified with colleagues and ran on multiple computers in R Studio. Notice the negative intercept and coefficient:
But running this in an R Snippet produces these same numbers but without the negative sign:
This is a HUGE problem because the next step after this is to exponentiate that coefficient. If it’s not accurately including the negative sign when it’s supposed to, that leads to a very wrong exponentiated odds ratio and incredibly bad advice given to end users. This is beyond bad and has already caused me a little bit of embarrassment. Please advise.