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

Feature Request: Option to Ignore Zeros in Res and Eta Figures #169

Open
billdenney opened this issue Oct 14, 2019 · 1 comment
Open

Feature Request: Option to Ignore Zeros in Res and Eta Figures #169

billdenney opened this issue Oct 14, 2019 · 1 comment

Comments

@billdenney
Copy link
Contributor

In many models, some subjects and/or rows are non-informative and have 0 for the residuals and etas. It would be helpful to have an option to ignore zero values when plotting residuals and etas to only have the informative rows present.

In parallel with this, a zapsmall_digits option (calling zapsmall() on the value to be plotted) would be useful as there are sometimes near-zero (but not precisely zero) values in these columns (especially etas; I don't think I've seen that happen with residuals).

@billdenney
Copy link
Contributor Author

A simple way to do this without additional options is the following:

xpdb <-
  xpdb_raw %>%
  mutate(
    CWRES=na_if(CWRES, 0)
  )

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

No branches or pull requests

2 participants