JASP and Statsmodels (Python) return different results
I'm running a multiple linear regression analysis in Python's statsmodels and in JASP. I'm using the same dataset and, as far as I can understand, I'm using the same model. I'm pretty sure I'm coding it right in Python (see below). I assume this might be related to some underlying difference between JASP and statsmodels, but not sure. Am I right?
Any comment highly appreciated.
Code I'm using in python:
model = smf.ols('outcome ~ predictor1 + C(predictor2) + predictor1*C(predictor2)', data = dataset).fit()
(obs. predictor1 is continuous; predictor2 is categorical)