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

Dev #207

Draft
wants to merge 141 commits into
base: main
Choose a base branch
from
Draft

Dev #207

wants to merge 141 commits into from

Commits on May 9, 2024

  1. doc: use chunks functionality in use_cases.Rmd examples

    - use same ylim in foi plots for better readability
    - add environment cleanup at the end of each example
    ntorresd committed May 9, 2024
    Configuration menu
    Copy the full SHA
    6beac59 View commit details
    Browse the repository at this point in the history
  2. doc: replace data(simdata_*) by corresponding code to simulate data

    - use data simulation functionalities of the package to simulate the
    datasets in `foi_models.Rmd` examples
    - use same chunk structure in modelling to validate results
    - overall cleanup of the vignette
    ntorresd committed May 9, 2024
    Configuration menu
    Copy the full SHA
    4929aee View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9b7c9ac View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5a395b8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2b7469b View commit details
    Browse the repository at this point in the history
  6. doc: update NEWS

    ntorresd committed May 9, 2024
    Configuration menu
    Copy the full SHA
    d4f2d9c View commit details
    Browse the repository at this point in the history

Commits on May 10, 2024

  1. Configuration menu
    Copy the full SHA
    045f0e0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    11fcffd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0cf922b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b670f50 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    adccb75 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    6e5c301 View commit details
    Browse the repository at this point in the history
  7. feat: add age-varying normal model av_normal

    - Replace `prob_infected.stan` by two separate files for each
    type of model
    - Slight change to parameter order in `prob_infected_calculate`
    ntorresd committed May 10, 2024
    Configuration menu
    Copy the full SHA
    6c70aa5 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    21ebb9e View commit details
    Browse the repository at this point in the history
  9. feat: modify fit_seromodel to allow for age-varying model implement…

    …ation
    
    - Change how `stan_data` is constructed depending on type of model
    - Specify default behavior by type of model
    ntorresd committed May 10, 2024
    Configuration menu
    Copy the full SHA
    1de0159 View commit details
    Browse the repository at this point in the history
  10. fix: use years or ages in plots depending on the type of model

    - Use `age` for age-varying models and `years` in time-varying
    models in
        - `get_foi_central_estimates`
        - `plot_foi`
        - `plot_rhats`
    ntorresd committed May 10, 2024
    Configuration menu
    Copy the full SHA
    56f9a42 View commit details
    Browse the repository at this point in the history
  11. feat: add age-varying normal model av_normal

    - Update `R/stanmodels.R`
    ntorresd committed May 10, 2024
    Configuration menu
    Copy the full SHA
    e115f92 View commit details
    Browse the repository at this point in the history
  12. doc: update documentation

    ntorresd committed May 10, 2024
    Configuration menu
    Copy the full SHA
    9103bdd View commit details
    Browse the repository at this point in the history
  13. doc: update NEWS.md

    ntorresd committed May 10, 2024
    Configuration menu
    Copy the full SHA
    dcc35a6 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2024

  1. #169 move probability functionality

    ben18785 authored and ntorresd committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    7a59136 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d79ca43 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    beb7f26 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    96ac735 View commit details
    Browse the repository at this point in the history
  5. #169 removed redundant functions

    ben18785 authored and ntorresd committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    f7466d6 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b40f33e View commit details
    Browse the repository at this point in the history
  7. #169 started to include docstrings

    ben18785 authored and ntorresd committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    63f6795 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    06b4283 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b401f1d View commit details
    Browse the repository at this point in the history
  10. #169 started to add in age-varying simulation but there's an error wi…

    …th the age-varying probs
    ben18785 authored and ntorresd committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    1de345f View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    48da875 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    154aa73 View commit details
    Browse the repository at this point in the history
  13. #169 added master simulate function. Bug for sample_size_by_individua…

    …l_age_random needs sorting
    ben18785 authored and ntorresd committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    360a9f5 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    df237f8 View commit details
    Browse the repository at this point in the history
  15. #169 corrected probability_exact_time_varying function (which now doe…

    …s not use an exposure matrix)
    ben18785 authored and ntorresd committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    d9cab53 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    a64b8b7 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    fac653f View commit details
    Browse the repository at this point in the history
  18. fix(i169): correct age binning for data simulation function

    - Correct tests accordingly
    - Avoids using `cut`
    ntorresd committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    f39c864 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    b5d8f91 View commit details
    Browse the repository at this point in the history
  20. #169 corrected mistake which meant (previously) age and time model se…

    …ropositivities were the same
    ben18785 authored and ntorresd committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    57c1442 View commit details
    Browse the repository at this point in the history
  21. Update simulate_serosurvey.R

    ben18785 authored and ntorresd committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    184036c View commit details
    Browse the repository at this point in the history
  22. #169 working draft of age and time model

    ben18785 authored and ntorresd committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    e73032f View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    64542e8 View commit details
    Browse the repository at this point in the history
  24. #169 added tidyr calls to expand_grid

    ben18785 authored and ntorresd committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    b3fdf15 View commit details
    Browse the repository at this point in the history
  25. #169 corrected partial argument match

    ben18785 authored and ntorresd committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    ce42933 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    b32fee1 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    de14b10 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    c42037c View commit details
    Browse the repository at this point in the history
  29. update NAMESPACE

    ntorresd committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    da1452d View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    6e219f8 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    da469de View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    b803055 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    8555c1b View commit details
    Browse the repository at this point in the history
  34. first draft of simulation vignette

    ben18785 authored and ntorresd committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    464d3de View commit details
    Browse the repository at this point in the history
  35. now runs ok

    ben18785 authored and ntorresd committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    26a8101 View commit details
    Browse the repository at this point in the history
  36. made vignette nicer

    ben18785 authored and ntorresd committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    6865596 View commit details
    Browse the repository at this point in the history
  37. started to add more general model

    ben18785 authored and ntorresd committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    69b0161 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    a59a3a7 View commit details
    Browse the repository at this point in the history
  39. doc: make sure old vignettes work as expected

    (provisional) Manually change variable names to use visualization functions.
    This will be remove after the refactorization of the package.
    ntorresd committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    6b55502 View commit details
    Browse the repository at this point in the history
  40. doc: syntax changes to 'simulating_serosurveys.Rmd'

    - Use different names for foi data frames on each example
    - Minor text and syntax changes to improve vignette's aesthetics
    ntorresd committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    326a3a8 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    3f936a1 View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    065e577 View commit details
    Browse the repository at this point in the history
  43. doc: changes to code chunks options

    - Set theme to 'theme_bw()'
    - Set 'echo=FALSE' on plotting code chunks
    - Set 'fig.align="center"' on plotting code chunks
    ntorresd committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    941ae9a View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. clean R and tests folders

    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    9bcc07f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    97232ec View commit details
    Browse the repository at this point in the history
  3. delete old modules

    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    0c08a05 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f553573 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    378226d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    119f19d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    d4644b7 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9bb8036 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2808f4e View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    43bb8bd View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    4989109 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    95b3fab View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    7fd310d View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    83ea66a View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    f7f01fd View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    405eaea View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    f4d3c25 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    5289f15 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    6fac32a View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    1aa16cd View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    5be893d View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    48036b1 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    acb8d04 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    37e03c9 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    ef0ac3c View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    4bef81e View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    4ac0087 View commit details
    Browse the repository at this point in the history
  28. feat: introduce 'summarise_loo_estimate' to simplify 'summarise_serom…

    …odel'
    
    This function allows to extact an specific loo estimate for model parameters
    like 'seroreversion_rate' or 'foi'.
    
    This introduce changes in:
    - 'summarise_seromodel'
    - 'plot_summary'
    - 'plot_seromodel'
    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    f33b605 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    865d612 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    790e0fa View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    9c801fe View commit details
    Browse the repository at this point in the history
  32. add comments to config.yml

    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    cfb3731 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    b548bb1 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    584ddf6 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    dfa7e2d View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    66f5596 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    02742a5 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    19b4b25 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    a260366 View commit details
    Browse the repository at this point in the history
  40. doc: update documentation

    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    320ab4a View commit details
    Browse the repository at this point in the history
  41. update DESCRIPTION

    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    235b36c View commit details
    Browse the repository at this point in the history
  42. update WORDLIST

    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    8c20223 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    cec9b9f View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    ddf6021 View commit details
    Browse the repository at this point in the history
  45. fix: replace validation function by checkmate::assert_names()

    - Remove two validation functions
    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    eaeb4b0 View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    89a6ca5 View commit details
    Browse the repository at this point in the history
  47. feat: modify R modules to allow log-scale model implementation

    - Add `sf_cauchy()` to set sigma prior in tv log modules
    - Add `is_log_foi` parameter to `fit_seromodel`
    - Add corresponding defaults
    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    aa00e59 View commit details
    Browse the repository at this point in the history
  48. feat: update stanmodels.R

    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    bb9ed9a View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    ed56027 View commit details
    Browse the repository at this point in the history
  50. feat: set default behavior for sampling initialization

    - Set different init functions for log and no-log models
    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    4b38db6 View commit details
    Browse the repository at this point in the history
  51. fix: simplify loaded datasets structure and update column NAMESPACE

    - Change `tsur` to `survey_year`
    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    a9e2a2f View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    777e4b8 View commit details
    Browse the repository at this point in the history
  53. update NAMESPACE

    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    6a62b94 View commit details
    Browse the repository at this point in the history
  54. update DESCRIPTION

    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    b2db329 View commit details
    Browse the repository at this point in the history
  55. feat: enable sigma prior specification for all foi_models

    - Set defaults in the log and regular scale for sigma statistics
    - Use Cauchy distribution for sigma prior in regular scale
    - Use normal distribution for sigma prior in log scale
    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    69ed428 View commit details
    Browse the repository at this point in the history
  56. Configuration menu
    Copy the full SHA
    9451b40 View commit details
    Browse the repository at this point in the history
  57. fix: add error whenever a not supported model_type is specified

    Current available options are:
    - `'constant'`
    - `'time'`
    - `'age'`
    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    483d77a View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    203e1e7 View commit details
    Browse the repository at this point in the history
  59. Configuration menu
    Copy the full SHA
    c92cd94 View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    92034d7 View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    78f743d View commit details
    Browse the repository at this point in the history
  62. Configuration menu
    Copy the full SHA
    1202941 View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    0a0ada6 View commit details
    Browse the repository at this point in the history
  64. doc: update documentation

    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    19a5465 View commit details
    Browse the repository at this point in the history
  65. Configuration menu
    Copy the full SHA
    58b7965 View commit details
    Browse the repository at this point in the history
  66. update WORDLIST

    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    f24501d View commit details
    Browse the repository at this point in the history
  67. doc: update serofoi.Rmd

    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    f00f945 View commit details
    Browse the repository at this point in the history
  68. Configuration menu
    Copy the full SHA
    5bcc296 View commit details
    Browse the repository at this point in the history
  69. Configuration menu
    Copy the full SHA
    29dafc7 View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    f03f1fe View commit details
    Browse the repository at this point in the history
  71. change version tag to 1.0.0

    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    3d75684 View commit details
    Browse the repository at this point in the history
  72. Configuration menu
    Copy the full SHA
    962bdef View commit details
    Browse the repository at this point in the history
  73. doc: add some examples in functions' documentation

    Add examples for:
    - `fit_seromodel`
    - `get_foi_index`
    - `plot_serosurvey`
    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    a3f00ca View commit details
    Browse the repository at this point in the history
  74. Configuration menu
    Copy the full SHA
    3a064e0 View commit details
    Browse the repository at this point in the history
  75. doc: update documentation

    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    e75b685 View commit details
    Browse the repository at this point in the history
  76. Configuration menu
    Copy the full SHA
    cafa979 View commit details
    Browse the repository at this point in the history
  77. doc: update documentation

    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    b02175d View commit details
    Browse the repository at this point in the history
  78. change version to 1.0.1

    ntorresd committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    6f17075 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2024

  1. Configuration menu
    Copy the full SHA
    1d2f69b View commit details
    Browse the repository at this point in the history