-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
distribution interface to
dist_spec
(#504)
* add distribution functions * deprecate "empty" distribution * make sd S3 * only generate samples if any params aren't natural * update stan model with new dist interface * update lognormal parameters * return mean function to previous functionality * update data * deprecate dist_def functions * use natural parametrisations in dist_def functions * deprecate dist_spec * extract_single_dist function * update fix_dist to work with compsosite dists * extract squash * update parameters to extract * specify lower bounds in function * pass lower bounds to stan model * update sample/report functions * max squash adjust report * update dist functions to new syntax * re-create data * update get_dist to new syntax * fully deprecate get fnuctions * create delay inits separately * max squash again * return correct dist in estimate_truncation * few more examples/docs * fix tests * add documentation to dist interface * add input checks * sd function to work with composite dists * warn when not using natural parameters * ensure bounds are respected in stan * add empty distribution for legacy reasons * add checks to dist_skel * use lapply for parameters * don't calculate sd if length 1 * use uncertain reporting in example * don't add one to sd * return correct parameters * dist_skel: calculate rate everywhere * update dist_skel examples * add missing man file * don't run internal examples * demote warning to message * update syntax everywhere * add news item * turn sd into an internal function * fix distribution documentation * remove obselete default * spell checking * use correct sd function * linting * remove obsolete tests * loop over all parameters * update touchstone arguments * linting * fix regex search/replace gone wrong * remove obsolete space * update strategy for estimating uncertainty * update uncertain parameter transformations * add missing sd to parameter sampling * update / recompile vignettes * update var names * rename argument in docs * update man pages * update test result * add reviewer Co-authored-by: Sam Abbott <[email protected]> * base scaling on variance, not sd * re-render vignettes * full text capitalisation of distributions * separate dist_spec from stan model * adjust tests/code for new dist_spec set up * re-create examples * re-doc * update tests * new dist_spec in estimate_truncation example * update get_seeding_time with updated dist_spec * estimate_truncation and seeding time tests * update truncation dist in estimate_truncation * remove more uses of old dist_spec * SD explicitly to zero for fixed * give names * fix typo * fix indent * fix another typo * squash bugs highlighted by tests * remove missing variable * linting * add missing docs * import transpose * ensure sd is positive * fix estimate_truncation example * make tolerance user-settable * use purrr::map instead of lapply * fix stan dist test * fix plotting * Apply suggestions from code review Co-authored-by: Sam Abbott <[email protected]> * rate and scale examples for Gamma Co-authored-by: Sam Abbott <[email protected]> * capitalise gamma and lognormal Co-authored-by: Sam Abbott <[email protected]> * change to single hash * use bar in normal_cdf * remove estraneous backticks * remove space before left parenthesis * split up dist.R * move deprecated `dist_spec` function * add examples * initial design sketch * make parameter conversion more flexible * add test for alternative gama params * update syntax in simulate_infections * add missing tag * update man pages * update estimate_secondary tests * update simulate_infections for new interface * udpate snapshots * get_dist deprecation test with natural params * update phi syntax * hide internal example * update deprecations * use toString * pmf -> NonParametric * add american spelling * fix gamma deprecation * add new functions to pkgdown * update vignette * recompile vignettes --------- Co-authored-by: Sam Abbott <[email protected]>
- Loading branch information
Showing
122 changed files
with
3,774 additions
and
2,590 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.