-
Notifications
You must be signed in to change notification settings - Fork 21
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
Feature missing reference dates #64
Closed
Closed
Changes from 1 commit
Commits
Show all changes
190 commits
Select commit
Hold shift + click to select a range
7477b32
update pre-commit yaml
seabbs 16506c4
add outline for formula passer
seabbs cd274a5
add first pass at formula interface tooling
seabbs 2b4ea43
merge changes from main
seabbs f6e2df3
Remove reduce_sum parallelization
adrian-lison d288fe2
Add observations with missing reference date
adrian-lison 6cdf3f2
Add alpha vector
adrian-lison 6ca4657
Implement random walk prior on logit alpha
adrian-lison 0e43ede
Simplify non-parallelized obs_lpmf
adrian-lison c3350ab
Make alpha doc more generic
adrian-lison 2864eee
Add first draft of likelihood computation for missing reference dates
adrian-lison fa415e9
Implement slicing of likelihood for obs_miss from 1+dmax onwards
adrian-lison 104efd6
Bugfix obs_lmpf and improve formatting
adrian-lison 4539e48
Extend generated quantities to cases with missing reference date
adrian-lison 0db6ce1
Change pp_inf_obs_miss_rep assignment to loop
adrian-lison 17484d0
Fix typo
adrian-lison 87e57e8
Catch bug if data.table contains column "group"
adrian-lison bdd2fba
Preprocess missing reference dates
adrian-lison 2343ee9
Add automatic completion of missing reporting dates per group and ref…
adrian-lison d47c510
Change structure and fix assignment
adrian-lison 4a0b647
Change date range for missing reference dates
adrian-lison 41187e5
Add obs_miss to stan_data_list
adrian-lison dfb1297
update from main
seabbs d70e559
plan out formula interface in more detail
seabbs 4570a8f
streamline final construction
seabbs 61c351e
filter rw
seabbs 8b68665
Change code comments
adrian-lison 4e43eb7
Move completion to separate function, account for max_date
adrian-lison 275efc8
Adapt obs_miss length from rd to t
adrian-lison 08b8b1f
Correct alpha and obs in stan model
adrian-lison 8add91b
Add priors for alpha
adrian-lison bd449e7
add more detail to outline
seabbs 13759ff
Add support for missing reference dates to enw_retrospective_data
adrian-lison 724f61c
Merge branch 'main' into feature-add-rw-re-formula-int
seabbs 2e94e01
XMerge branch 'main' into feature-add-rw-re-formula-int
seabbs 58b7da2
morework on formula interface
seabbs 383fbf7
working construcotr for random walks
seabbs 6cf52ec
add partial random effects structure
seabbs 40a0309
prototype random effects constructor
seabbs 73460c9
add comments for formula
seabbs e011eb9
more commenting
seabbs 8cfb703
put formula pieces together
seabbs ac809ac
Fix generated quantities and add code doc
adrian-lison a48ae0a
Shorten loglik missing array
adrian-lison 0d0e13a
add random walk term extraction and effects
seabbs 74a2572
candidate formula function implemented
seabbs 9f2e8cd
update readme to use formula interface
seabbs 6bf72e1
refresh documentation
seabbs 187fb15
add skeleton documentation
seabbs ba8d135
update README
seabbs eeb6d8c
fix no report model edge case
seabbs 67df447
fix edge case with (Intercept) in random effect matrix
seabbs 354edd0
implement case studies using formulas and fix edge cases
seabbs 73e0d58
add note about reduce samples and iterations to vignette
seabbs 43fc3e9
reduce samples used in README
seabbs f0fe7b4
add documentation for formula parsers
seabbs 7d8d83d
add parse_formula docs
seabbs 6bc72d2
add parse_formula docs
seabbs 201f756
Merge branch 'feature-move-nb-to-log' into feature-add-rw-re-formula-int
seabbs 07bfcb1
add documentation for rw and construct_rw
seabbs dbf458d
update pkgdown with new formula references
seabbs da6aed4
add random effect documentation
seabbs 0956484
add complete formula docs + cran check
seabbs e395549
spell check, style, and iterate version
seabbs b85faa3
add codemeta
seabbs 701a0e7
update docs and add pkg docs
seabbs 2272b9d
add snapshot tests for enw_manual_formula
seabbs 962cc1f
add snapshot tests for enw_formula
seabbs c76e9c2
update case study to use formula interface
seabbs 832c234
Merge branch 'main' into feature-add-rw-re-formula-int
seabbs 80211e8
Merge branch 'develop' into feature-add-rw-re-formula-int
seabbs b077f0a
update image tag
seabbs 3a135da
update from develop
seabbs e01f76c
update example to use formula
seabbs 9dff353
Merge pull request #27 from epiforecasts/feature-add-rw-re-formula-int
seabbs cbc5cc1
Use automated doc dev mode
seabbs 28966f2
deploy docs from develop branch
seabbs 345e71a
fix pkgdown.yaml
seabbs 7a191da
scaffold out location for metadelay
seabbs 6362a77
update family links for all fns
seabbs 73aded3
model description clarifications
sbfnk 98d247a
add support for non-factor random effects + initial delay metadatal
seabbs fad80a0
future-proof array declarations
sbfnk 1e46bf9
ensure all parameters are initialised
sbfnk 61754c3
update docs to reflect new metadata
seabbs 60a8ef9
tests passing
seabbs ae8e507
add unit tests for enw_delay_metadata
seabbs fcb40d2
update news
seabbs 8c1214c
refresh documentation
seabbs 9d9ed8a
catch all optional model parameters and add @sbfnk as ctb
seabbs 5c9b863
add snapshot unit tests of initial conditions
seabbs 1b9e3d6
update example data
seabbs be24312
style and fix example
seabbs 8571044
Merge pull request #77 from epiforecasts/init-params
seabbs 8025afe
fix enw_construct_data docs
seabbs 25a7057
remove non-standard folder
seabbs 0375553
"reference" -> "occurrence"
sbfnk 6694b41
"date" -> "time"
sbfnk 0510e20
clarify use of enw_retrospective_data
sbfnk 9566583
fix CRAN check
seabbs fa3ceb3
further CRAN check fixes
seabbs 4e6484e
Merge pull request #80 from epiforecasts/feature-metadelay
seabbs f8d0714
merge changes from develop
seabbs cb3a249
catch more of cmdstanr only notation
seabbs 0e741c7
update news with new changes
seabbs 4624707
stan changes to support exponential delays
seabbs 6390031
Merge pull request #75 from epiforecasts/fix-stan-warnigs
seabbs 341d9ce
add R code support
seabbs 6e27cc1
debug and review
seabbs e416d52
merge changes from develop
seabbs 456f978
add news entry
seabbs c81960f
compatibility with rstan for exposing functions
sbfnk 7c96a30
update variables names
sbfnk 2f254b3
update distribution comment
seabbs 5789bd5
fix comma dist docs
seabbs 25c6426
fix whitespace
seabbs 597e5cb
bump @sbfnk to author
seabbs 8322a04
partial conversion to use dist for parametric control
seabbs 361c13f
convert inner likelihood code to function
seabbs 19a65df
linking model to index changes for no dist
seabbs 5c2d9cb
linking model to index changes for no dist
seabbs 40a30b7
add R interface
seabbs 7bfa573
updated init tests and news in light of changes
seabbs 10f49c6
lint package
seabbs 37ad9b7
Merge pull request #84 from epiforecasts/feature-exp-delays
seabbs 12e3725
move fn to not be exported and add docs
seabbs 1a0aee3
convert expose_stan_fns to multiple fns
seabbs 134f6b4
update news with new PR
seabbs 9ee9bad
add tests and improve regex
seabbs e741f83
inverse tests
seabbs 36c23f8
merge develop
seabbs 14df115
Merge pull request #85 from epiforecasts/fix-expose-fns
seabbs 3f3c0b9
add develop branch to contributing
seabbs 68765e2
Merge pull request #86 from epiforecasts/update-contributing
seabbs c40224e
merge develop
seabbs 8960181
first pass doc and code review, clarify filtering
seabbs a0795f2
add check dates
seabbs c341429
recast retrospective data construction to modular
seabbs 5ec053d
update example
seabbs da7a461
add @sbfnk regex suggestion
seabbs 62e7ae3
update news
seabbs 9e4768d
formatting
seabbs 10e7d0b
fix missing bracket
seabbs 5953dd1
add an additional line of regex for matrix and vector case
seabbs 38ab910
Merge pull request #93 from epiforecasts/bug-safer-regex
seabbs 77be8c0
update vignettes
seabbs 643a1da
update news and readme.Rmd
seabbs 42c82ac
remove references to enw_retrospective_data in docs and tests
seabbs 8855d2b
add tests for check_dates
seabbs ca46036
Streamline grouping parameter of complete_dates and format
adrian-lison 7f1a325
add filtering tests
seabbs 27fd0e7
Streamline groups
adrian-lison a0fe344
Replace group with .group
adrian-lison ddaf6f4
styleh
seabbs 93218fd
Merge pull request #82 from epiforecasts/clarify-retrospective
seabbs 48430cf
Merge branch 'develop' into refactor_rename_group_variable
seabbs b760d8f
run styling and add check fn
seabbs e5f1026
add tests for check_group
seabbs b2a6d92
add testing of model compilation
seabbs 6d8561d
add random walk as cumulative sum
seabbs 833bc77
add test for profiling
seabbs ce93c5c
lint tests
seabbs 183526f
get rid of loop
seabbs ea9f85c
add news update
seabbs f757b14
spell check
seabbs d82b711
hotfix preprocessing
seabbs da58625
merge hotfix for preprocessing
seabbs 34722fe
hotfix filter preprocessing
seabbs 9183e65
hotfix scoring
seabbs 6dca63b
merge hotfixs
seabbs 2a18a17
test CI using cmdstan 2.29.0
seabbs 807c1b1
Fix typos
adrian-lison 717057d
Merge branch 'develop' into refactor_rename_group_variable
adrian-lison 8833763
Update example data
adrian-lison 0a5945f
Update news
adrian-lison f2f60b7
Fix my own typo in news
adrian-lison 6c9ff9f
Fix grammar in news
adrian-lison 5d1e065
make test coverage use 2.29.0
seabbs ba6f217
Merge pull request #103 from epiforecasts/feature-cumulative-sum-expe…
seabbs df67660
merge news from develop
seabbs 3664315
save news changes this time
seabbs ab7add7
merge with develop
seabbs 66e7d71
update DESCRIPTION
seabbs b82e0a2
replace last occurrence references
seabbs d47dcbf
add link to documentation to the readme
seabbs 598f855
Merge pull request #102 from epiforecasts/refactor_rename_group_variable
adrian-lison b52f792
review model description
seabbs 005b74f
add news item
seabbs 3dc4ac0
Merge pull request #71 from epiforecasts/model-description-sbfnk-review
seabbs 8acaf51
merge in develop
seabbs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Move completion to separate function, account for max_date
- Loading branch information
commit 4e43eb75bc3d8bbcd6e5ae1a20374865c02f2eae
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just by the way: I believe the completion of the missing reporting dates can also be done using
dcast
in the case of the reporting triangle (and is actually already done). In other words, it is not necessary for the reporting triangle, but I think it is necessary for the other data structures. One option to think about would be to implement a more efficient version of the below function using dcast. Then again, this is more explicit and needs no reshaping of data structures...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup that was intentional as happens quite a bit in data I've seen but I missed the fact it wouldn't enter into the metadata and so won't be assigned features/will break (I think).
This looks quite efficient whilst also being clear so I'd go with this implementation vs
dcast
magic.Doing it all at once (and maybe before preprocessing makes lots of sense).