I observed a very strange behavior while doing logistic regression, univariance analysis and correlation analysis.
I have dependent binary variable and several independent variables that should be included into the model.
When I am running this model the output looks quite strange for variable X (which is in great importance for us):
- p-value is 0.003
- B is -0.001
- exp(B) is 0.999
- CI 95% is 0.998 - 1.000
When I am running univariance analysis for variable X from plotted graph I can see that group 1 (the group of the previously mentioned dependent variable that is being compared to the comparison group 2) has higher mean values of the variable X.
When I am running correlation analysis it returns 2-tailed p-value 0.024 and correlation coefficient -0.138. I am interpreting this as, comparison group have to have higher values of the X variable's mean values (which is not true according to the univariance analysis).
Descriptive analysis shows that variable X is more or less symmetric.
I tried to bin variable X in three parts (2 binning points resulting in around 33.33% of values in each bin). This showed that the values of X is increasing from bin to bin fro group 1 which is being compared to group 2.
So, I am basically stuck here. Basic theory shows that if logistic regression has exp(B) value less, than 1, then this means that variable X should have an invert effect on the group being compared to, which is not true in my case. Moreover correlation analysis demonstrates that relation is inverted which again is not true, if I can trust univariance analysis.
So, I have one questions:
- How thissuch an unusual behavior (p-value is smaller, than 0.05, but Exp(B) contains 1.0) can be explained?
p.s. If more information needed on this case, then please ask. I will provide it.
Edited:
Logistic regression for bins shows:
- 1st bin has p-value 0.059 and Exp(B) is 3.5
- 2nd bin has p-value 0.007 and Exp(B) is 5.01
Overall p-value for binned variable X is 0.02