How do the parameters compare? Not sure if this is the case, but some packages in python standardize the data before doing the regression, SAS does not. Also, what parameterization method is being used if categorical variables are involved.
There's likely a reason this is occurring but there isn't enough information to say why.
Just running 'logistic regression' in each application is not necessarily running equivalent models.
@lionking19063 wrote:
Hi,
I am constructing a binary logistic regression model using 'proc logistic' in SAS, and the output appears to be error-free with no warning messages. However, when I replicate the same dataset and variables in Python using statsmodels, I encounter an error message indicating possible quasi-complete separation: 'A fraction of 0.20 of observations can be perfectly predicted. This might indicate quasi-separation, and in such cases, some parameters may not be identified.' In light of this discrepancy, I am uncertain about which set of results to trust—those from SAS or from Python. Thank you for any guidance you can provide.
... View more