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

Allow more thresholds for windzorizing #49

Open
mattansb opened this issue Jan 5, 2022 · 0 comments
Open

Allow more thresholds for windzorizing #49

mattansb opened this issue Jan 5, 2022 · 0 comments

Comments

@mattansb
Copy link
Member

mattansb commented Jan 5, 2022

Originally posted #47

Current behavior: Thresholds are relative, based on top/bottom percentile.

Suggested behavior: This can be expanded in many ways:

  • Fixed values - used passed lower and upper thresholds.
  • Relative Z score
  • Relative robust Z score
rempsyc added a commit to rempsyc/datawizard that referenced this issue Jun 25, 2022
IndrajeetPatil pushed a commit that referenced this issue Jun 27, 2022
* addresses #177 & #49 & #47 for winsorizing based on the MAD

* forgot to push updated documentation

* new argument "method", updated NEWS, resolved failed test, #179

* update winsorize.numeric

added raw method

made the code easier to maintain by modularizing it

made doc more explicit about the methods

updated examples to visualize the effect

update NEWS

* minor modifications to docs

* removed tidyr from Suggests, replaced `tidyr::pivot_longer` with `datawizard::data_to_long` in vignette

* added new tests for new winsorization methods, insight::format_message(), data[] <- lapply...

Co-authored-by: RemPsyc <[email protected]>
Co-authored-by: Mattan S. Ben-Shachar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants