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

Move dispersion from parameter to summary statistic in DB and add dispersion to create_summary_stats() #379

Merged
merged 4 commits into from
Sep 23, 2024

Conversation

joshwlambert
Copy link
Member

This PR redefines the dispersion parameter as a summary statistic for probability distributions that do not use the dispersion parameter in usual parameterisations (e.g lognormal distributions). It is kept as a parameter for distributions that use dispersion as a standard parameter (e.g. negative binomial). This change is made to the parameter database (parameters.json).

The JSON schema (data_dictionary.json) is enhanced by adding a propertyName enum to make sure that summary statistics stored in the database are valid from a set of options.

The create_summary_stats() function is updated to include dispersion and dispersion uncertainty as arguments and in the output list. The function documentation is also updated.

@joshwlambert
Copy link
Member Author

Merging this PR even though one of the unit tests is failing as this will be fixed in an upcoming PR.

Other GHA workflows have also failed since rebasing this branch but this is due to an issue with the workflow and independent of any changes made in this PR.

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.

1 participant