Skip to content

ENH: Stats robust rebased2 - #6789

Merged
josef-pkt merged 28 commits into
statsmodels:masterfrom
josef-pkt:stats_robust_rebased2
Jun 30, 2020
Merged

josef-pkt merged 28 commits into
statsmodels:masterfrom
josef-pkt:stats_robust_rebased2

Conversation

@josef-pkt

@josef-pkt josef-pkt commented Jun 8, 2020 •

Copy link
Copy Markdown
Member

continuation of #6526 various oneway anova functions

will close previous PRs #6526 and #6459

rebased, will need commit cleanup with interactive rebase

@pep8speaks

pep8speaks commented Jun 8, 2020 •

Copy link
Copy Markdown

Hello @josef-pkt! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-06-30 01:13:21 UTC

josef-pkt added 24 commits June 8, 2020 12:07
@coveralls

coveralls commented Jun 8, 2020 •

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.04%) to 87.99% when pulling 7f2ed12 on josef-pkt:stats_robust_rebased2 into bffc34f on statsmodels:master.

@josef-pkt
josef-pkt force-pushed the stats_robust_rebased2 branch from 496418f to f12a80d Compare June 8, 2020 16:35
@lgtm-com

lgtm-com Bot commented Jun 8, 2020

Copy link
Copy Markdown

This pull request introduces 7 alerts when merging f12a80d into ee9f5c0 - view on LGTM.com

new alerts:

  • 6 for Unused local variable
  • 1 for Unreachable code

@lgtm-com

lgtm-com Bot commented Jun 9, 2020

Copy link
Copy Markdown

This pull request introduces 2 alerts when merging f8c9605 into ee9f5c0 - view on LGTM.com

new alerts:

  • 1 for Unused local variable
  • 1 for Unreachable code

@josef-pkt

Copy link
Copy Markdown
Member Author

wrong naming?:
wald_test_noncent_generic should have noncent in front, i.e. it's not a wald test it's a noncentrality parameter

@josef-pkt

Copy link
Copy Markdown
Member Author

I fixed the vectorized version of TrimmedMean.
It support axis argument, at least for 0 and 1. I'm not sure it's worth keeping the axis argument.
I already had most support, but needed to add axis to np.clip call. That works along an axis defined by broadcasting. (I currently use numpy 1.16.4 )

maybe rename TrimmedMean to TrimmedStats
weightstats uses DescrStatsW as class name, which is a bit ugly

@lgtm-com

lgtm-com Bot commented Jun 15, 2020

Copy link
Copy Markdown

This pull request introduces 2 alerts when merging c4ba65f into 0289d92 - view on LGTM.com

new alerts:

  • 1 for Unused local variable
  • 1 for Unreachable code

Comment thread statsmodels/stats/robust_compare.py Outdated
raise ValueError('transform should be abs, square or exp')

if center == 'median':
res = tfunc(x - np.expand_dims(np.median(x, axis=0), axis))

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still a bug here, uses axis=0 in centering
Unit tests for axis argument?

@lgtm-com

lgtm-com Bot commented Jun 21, 2020

Copy link
Copy Markdown

This pull request introduces 1 alert when merging 5249c99 into 0da7220 - view on LGTM.com

new alerts:

  • 1 for Unused local variable

@lgtm-com

lgtm-com Bot commented Jun 29, 2020

Copy link
Copy Markdown

This pull request introduces 1 alert when merging 654a594 into f196c09 - view on LGTM.com

new alerts:

  • 1 for Unused local variable

@josef-pkt
josef-pkt force-pushed the stats_robust_rebased2 branch from 654a594 to e9dbec4 Compare June 29, 2020 18:29
@josef-pkt
josef-pkt force-pushed the stats_robust_rebased2 branch from e9dbec4 to 7f2ed12 Compare June 30, 2020 01:13
@josef-pkt

Copy link
Copy Markdown
Member Author

unrelated failure timeout in docbuild on travis
otherwise all green, merging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants