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

Add sensitivity functions to produce vector of new pars that vary sd without changing mean #58

Merged
merged 32 commits into from
May 16, 2024

Conversation

nehill197
Copy link
Member

@nehill197 nehill197 commented May 15, 2024

References issue #59

@nehill197
Copy link
Member Author

extras is dependent on the sn package, which in turn is dependent on the Matrix package, which now requires R >= 4.4.0 (though the actions passed on R 4.3.0). I changed the R dependency to 4.3.0, and updated the R-CMD-check actions from the "overkill" set that included the windows on R 4.1 and the older ubuntu versions to the "check standard" version.

@nehill197
Copy link
Member Author

nehill197 commented May 16, 2024

The binomial family of distributions don't seem to have a clear solution to adjust the parameters to expand the sd without changing the mean.
I also haven't included a function for the zero-inflated Poisson distribution because it's proving difficult.

@nehill197
Copy link
Member Author

This pull request also includes a handful of styler and lintr suggestions to some of the other functions/tests/vignettes.

@nehill197 nehill197 requested a review from joethorley May 16, 2024 14:55
Copy link
Member

@joethorley joethorley left a comment

Choose a reason for hiding this comment

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

looks great!

R/sens.R Outdated
#'
#' @inheritParams params
#'
#' @return A named vector of the adjusted distribution's parameters.
Copy link
Member

Choose a reason for hiding this comment

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

The return object description will need changing to A named list of the...

@nehill197 nehill197 merged commit 7b5154a into main May 16, 2024
7 checks passed
@nehill197 nehill197 deleted the sensitivity branch May 16, 2024 19:04
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

Successfully merging this pull request may close these issues.

2 participants