Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Spatial branch for merge of main (#152)
* Adding class and methods for wwinference model fit (#58) * Starting off refactoring (expected to fail) [skip ci] * Adding new method * Fixing bug in fit_model (was exploiting scoping) * Updating docs (fixing S3 methods) * 49 output class creation (#59) * add a space * add first test of first check * add tests for all of the check/assert functions * run precommit * check bug in passing output of checkmate to cliabort * initial tests of preprocess_ww_data * add custum utils function for autoescaping brackets to pass to glue * add a bunch of tests for preprocessing wastewater data * add one more test of site lab indexing * fix bugs caught in CI * fix lab site spacing * fix spacing in name again * add test to hospital admissions preprocessing * add additional test to ensure character to indexing of sites and labs * remove bug in expected number of unique lab site indices * add tests to make sure data is daily and test to checkers * add a bunch of validation checks to the joint datasets and the user specifications * replace with new way of getting stan data * fix examples, add test, add warning * fix examples, add test, add warning * change from hosp -> count everywhere except stan and vignette/examples * add tests for pmfs * fix bugs in documentation * add padding value as a function arg * change pmf size check to a warning not an error * fix bug * make initialization function more generic * update changelog * modify to test * fix typo from merge * fix parsing of cmdstan object * change parsing of fit obj * Update R/checkers.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/checkers.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/checkers.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/checkers.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/checkers.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/checkers.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/checkers.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/checkers.R Co-authored-by: Dylan H. Morris <[email protected]> * some tweaks to checkers * Update R/checkers.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/checkers.R Co-authored-by: Dylan H. Morris <[email protected]> * fix documentation * fix typo * fix typo * change outputs from wwinference() function * fix typos, add documentation * fix bug missing stan args * exclude t columns in data join * fix vignette bug * add the ww_output documentation * document ... * fix missing comma * move documentation of params around * Update R/checkers.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/checkers.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/checkers.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/checkers.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/checkers.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/checkers.R Co-authored-by: Dylan H. Morris <[email protected]> * change syntax and filenames * Update R/preprocessing.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/wwinference.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/wwinference.R Co-authored-by: Dylan H. Morris <[email protected]> * change naming and internal checking * change syntax * move around documentation * fix check * fix tests, fix documentation * rename assert function to specify within a certain frame * add element to text * fix bug in function name * tweak to inference function * fix two bugs * adjust tests based on updated get stan data function which breaks up generation of input data * Update get_stan_data.R example * update documentation after fixing example * add example to wwinference wrapper function * attempt to move around documentation for wwinference methods * play around with the documentation of the default and the S3 method functions * export S3 method function * add back in exporting functions to get input data formatted for stan * make first argument of function have same name as class object * fix bug in how max generation time is found * update vignette to explain wwinference_fit class object vs explicit function calling, add diagnostics and show both ways * fix naming blocks adding comma when needed * dont export autoescape brackets function * fix same bug * update test and preprocessing to count at LOD values at below LOD * fix internal call to diagnostic flags function * Update R/validate.R Co-authored-by: Dylan H. Morris <[email protected]> * Update tests/testthat/test_preprocess_count_data.R Co-authored-by: Dylan H. Morris <[email protected]> * implement DMs suggestions * run pre-commit * export default functions * Add test-coverage.yaml from epinowcast * remove test coverage * remove example, function not exported * export default function * export both diagnostics functions * add documentation of additional arguments * Update R/validate.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/validate.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/validate.R Co-authored-by: Dylan H. Morris <[email protected]> * Update tests/testthat/test_checkers.R Co-authored-by: Dylan H. Morris <[email protected]> * Update tests/testthat/test_checkers.R Co-authored-by: Dylan H. Morris <[email protected]> * Update tests/testthat/test_preprocess_count_data.R Co-authored-by: Dylan H. Morris <[email protected]> * Update tests/testthat/test_preprocess_ww_data.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/validate.R Co-authored-by: Dylan H. Morris <[email protected]> * manually input some suggestions * Update tests/testthat/test_checkers.R Co-authored-by: Dylan H. Morris <[email protected]> * Update tests/testthat/test_checkers.R Co-authored-by: Dylan H. Morris <[email protected]> * Update tests/testthat/test_preprocess_count_data.R Co-authored-by: Dylan H. Morris <[email protected]> * Update tests/testthat/test_preprocess_count_data.R Co-authored-by: Dylan H. Morris <[email protected]> * Update tests/testthat/test_preprocess_count_data.R Co-authored-by: Dylan H. Morris <[email protected]> * add more checknames * run pre-commit locally * fix typo * add some very minimal tests * fix wwinference function * fix bug * fix bug * Update tests/testthat/test_preprocess_count_data.R Co-authored-by: Dylan H. Morris <[email protected]> * Update tests/testthat/test_preprocess_count_data.R Co-authored-by: Dylan H. Morris <[email protected]> * run pre-commit locally * fix bugs in tests * fix error in tests * move forecast date, calib time, horizon time to args to wrapper function * fix hosp only example in vignette * fix error in example * add dont run to examples * check -> expect in checkmate, confirm tests pass locally --------- Co-authored-by: Dylan H. Morris <[email protected]> Co-authored-by: George G. Vega Yon <[email protected]> * Making pre-commit happy * Reworking cross-references and print method * Removing copy of fit_model * Fixing function call * Addressing PR comments * Forgot to save some changes * Change output names (#86) * change names of outputs of wwinference wrapper function * fix a few other missed replacements * fix pre-commit * Fixing R CMD check * Pre-commit * Removing diagnostics_summary --------- Co-authored-by: George G. Vega Yon <[email protected]> * Update vignettes/wwinference.Rmd Co-authored-by: Kaitlyn Johnson <[email protected]> * Update vignettes/wwinference.Rmd Co-authored-by: Kaitlyn Johnson <[email protected]> * Adding example of summary and print in the vignette. Addressing some minor comments * fix test for expected names after changing function args * set seed in tests --------- Co-authored-by: Kaitlyn Johnson <[email protected]> Co-authored-by: Dylan H. Morris <[email protected]> Co-authored-by: kaitejohnson <[email protected]> * Addressing R CMD check notes due to tidyeval syntax (#108) * Starting to use .data and others * Removing more warnings * Think almost all issues are now solved * License warning and passing params as expected * Removing prefix * Fixing note on license and news file * Using str2lang in spread_draws * Update R/get_draws_df.R Co-authored-by: Dylan H. Morris <[email protected]> * Fixing R CMD check * fixed intercept in figures * Update R/generate_simulated_data.R Co-authored-by: Dylan H. Morris <[email protected]> * Apply suggestions from code review by @dylanhmorris Co-authored-by: Dylan H. Morris <[email protected]> * Update R/preprocessing.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/get_stan_data.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/preprocessing.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/preprocessing.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/preprocessing.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/preprocessing.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/preprocessing.R Co-authored-by: Dylan H. Morris <[email protected]> * remove call to utils::globalVariables() * Update R/preprocessing.R * Update R/generate_simulated_data.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/preprocessing.R Co-authored-by: Dylan H. Morris <[email protected]> * Update R/get_stan_data.R Co-authored-by: Dylan H. Morris <[email protected]> --------- Co-authored-by: Dylan H. Morris <[email protected]> Co-authored-by: Kaitlyn Johnson <[email protected]> Co-authored-by: kaitejohnson <[email protected]> * update hierarchical estimate of sigma_site in `model_definition` (#120) * add a space * update hierarchical estimate of sigma_site * update prior table * run pre-commit * update comment when transforming to site level standard deviations * add to change log * Update inst/stan/wwinference.stan Co-authored-by: Dylan H. Morris <[email protected]> * Update model_definition.md Co-authored-by: Dylan H. Morris <[email protected]> * Update model_definition.md Co-authored-by: Dylan H. Morris <[email protected]> * Update model_definition.md Co-authored-by: Dylan H. Morris <[email protected]> * update notation for mode and sd of stdevs * Update model_definition.md Co-authored-by: Dylan H. Morris <[email protected]> * Update model_definition.md Co-authored-by: Dylan H. Morris <[email protected]> * Update model_definition.md Co-authored-by: Dylan H. Morris <[email protected]> * tweaks to formatting * Update model_definition.md Co-authored-by: Dylan H. Morris <[email protected]> --------- Co-authored-by: Dylan H. Morris <[email protected]> * Vignette tweaks (#141) * fix typo in indicate ww exclusions documentation * fix typos/language in vignette * Update R/preprocessing.R Co-authored-by: Chirag Kumar <[email protected]> * update docs --------- Co-authored-by: Chirag Kumar <[email protected]> * actually set seed * Set seeds in test_get_stan_data (#146) Co-authored-by: Kaitlyn Johnson <[email protected]> * Modify package to expect log scale concentration values and LODs (#122) * Tweaks to model definition (#134) * Fix check for required wastewater columns (#127) * Switch to placing prior on and inferring `i/n` at the first observed timepoint (#85) * update vignette to reflect default NULL seed in mcmcoptions (#125) * Fix NEWS.md (#126) * hot fix to readme * Update NEWS.md * run pre-commit * Update NEWS.md (#144) * run pre-commit locally * Update NEWS.md --------- Co-authored-by: George G. Vega Yon <[email protected]> * 2024-09-09 update : fixing check-package error. * 2024-09-09 update : fixing check-package error. * 2024-09-09 update : removing test_ww_model. --------- Co-authored-by: George G. Vega Yon <[email protected]> Co-authored-by: Kaitlyn Johnson <[email protected]> Co-authored-by: Dylan H. Morris <[email protected]> Co-authored-by: kaitejohnson <[email protected]> Co-authored-by: Chirag Kumar <[email protected]>
- Loading branch information