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

Simplify parameter conversion #165

Merged
merged 13 commits into from
Aug 24, 2023
Merged

Simplify parameter conversion #165

merged 13 commits into from
Aug 24, 2023

Conversation

joshwlambert
Copy link
Member

This PR addresses #164.

This PR reduces the number of exported parameter conversion functions to two. This is done by removing the one-to-one conversion functions, for example lnorm_meansd2meanlogsdlog() and consolidating all of their functionality with that of the many-to-one (e.g. convert_lnorm_summary_stats()) and one-to-many (e.g. convert_lnorm_params()) conversion functions into two functions. One to convert from parameters to summary statistics (convert_params()) and one from summary statistics to parameters (convert_summary_stats()).

The vignette on parameter conversion and extraction has been heavily modified to work with the new functions, it contains the same examples but uses fewer functions to do so. The getting started vignette has been updated to removed mention of the old functions and use the newer versions.

Documentation and testing has been updated with the changes made in this PR.

calc_dist_params() has also been moved from exported to internal.

@joshwlambert joshwlambert added the enhancement New feature or request label Aug 21, 2023
@joshwlambert joshwlambert merged commit 59b3fe7 into main Aug 24, 2023
9 checks passed
@joshwlambert joshwlambert deleted the convert branch August 24, 2023 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant