Skip to content
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 center parameter to homoscedasticity function #218

Closed
Tracked by #236
rnesti opened this issue Dec 13, 2021 · 2 comments
Closed
Tracked by #236

Adding center parameter to homoscedasticity function #218

rnesti opened this issue Dec 13, 2021 · 2 comments
Assignees
Labels
feature request 🚧 New feature or request

Comments

@rnesti
Copy link

rnesti commented Dec 13, 2021

Hi @raphaelvallat,

could you please add a center parameter to the homoscedasticity() function?

homoscedasticity() uses the median which is in fact the Brown-Forsythe version, but the normal levene test uses the mean as far as I know.

Thank you very much!

Best regards!

@raphaelvallat raphaelvallat added the feature request 🚧 New feature or request label Dec 14, 2021
@raphaelvallat raphaelvallat self-assigned this Dec 14, 2021
@raphaelvallat
Copy link
Owner

Hi @rnesti,

Pingouin is based on the scipy.stats.levene function, which uses the median by default. I'll add the center parameter in the next release of Pingouin 👍

Thanks,
Raphael

@raphaelvallat
Copy link
Owner

Done in dc4f21d

@raphaelvallat raphaelvallat mentioned this issue Feb 12, 2022
12 tasks
raphaelvallat added a commit that referenced this issue Feb 20, 2022
* Flake8

* Explicit error when y is an empty list in pg.ttest

#222

* Add keyword arguments in homoscedasticity function

#218

* Bugfix rm_anova and mixed_anova changed the dtypes of categorical columns + added observed=True to all groupby

#224

* Update version number in init and setup

* Use np.isclose for test_pearson == 1

#195

* Coverage for try..except scipy fallback

* Fix set_option for pandas 1.4

* Upgraded dependencies for seaborn and statsmodels

* Added Jarque-Bera test in pg.normality

#216

* Coverage scipy import error

* Use pd.concat instead of frame.append to avoid FutureWarning

* Remove add_categories(inplace=True) to avoid FutureWarning

* GH Discussions instead of Gitter

* Minor doc fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request 🚧 New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants