-
-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding planned contrasts #219
Comments
Hi @rnesti, Thanks for this suggestion. I agree that this would be a useful addition. However, it will take a significant amount of time to implement and test, and it is therefore unlikely to be implemented in Pingouin in the near future. I know that there is a Contrast module in statsmodels, have you looked into it? Thanks, |
Hi @raphaelvallat, You're welcome! Yes, I know the import statsmodels.formula.api as smf
linear_model = smf.ols(" Y ~ C(X1, Sum) * C(X2, Sum)" , data = data) However, the problem is that you can't use additional contrasts, so the categoricals are "blocked" with the linear_model.t_test([2,-1,-1,0,0]) But this isn't working, because you are not able to access the reference levels. You could then use Best regards! |
Hi @raphaelvallat,
Could you please add a possibility to test (planned) contrasts ?
Referring to Andy Field's
Goggles.sav
example from previously:What I could imagine would be a function
planned_contrasts()
used like:which would compare
Placebo vs. Low dose & High dose
.Changing
contrasts
to[0,-1,1]
would copareLow dosis vs. High dosis
Other contrasts would also be cool :)
Thank you very much!
Best regards!
The text was updated successfully, but these errors were encountered: