Changelog
Source:NEWS.md
serocalculator (development version)
New features
Added
chain_coloroption tograph.curve.params()to control MCMC line color (#455)Made
graph.curve.params()the default sub-method forautoplot.curve_params()(#450)Added
log_xandlog_yoptions tograph.curve.params()sub-method forautoplot.curve_params()(#453)Extended
sim_pop_data_multi()to loop over multiple sample sizes (#444)Added new functions
analyze_sims()andautoplot.sim_results()(#444)Rename
estimate_scr()toest_seroincidence_by()(#439)Rename
estimate_scr()toest_seroincidence()(#432)Rename argument
curve_paramstosr_paramsfor estimation functions (#424)added documentation for
count_strata()(#431)Rename
as_curve_params()toas_sr_params()(#421)Rename
load_curve_params()toload_sr_params()(#421)added default for
xvarin"scatter"option forautoplot.seroincidence.by()(#417)Extended
autoplot.summary.seroincidence.by()to include types for either scatter or bar plots of stratified results (#397)added option to add lines using
group_varinput toautoplot.summary.seroincidence.by()(#410)autoplot.pop_data(type = "age-scatter")now shows legend at bottom (#407)autoplot.pop_data(type = "age-scatter")now facets by antigen isotype (#406)Rename
est.incidence.by()toestimate_scr_by()(#389)Rename
est.incidence()toestimate_scr()(#389)Improved warning messages for
get_biomarker_names_var()Added
get_*()extractor functions to API (#380)Added optional CI error bars to
autoplot.summary.seroincidence.by()(#372)Improved y-limit calculation in
graph.curve.params()(#368)Added option for
graph.curve.params()to show all curves (#368)Added color-coding for
graph.curve.params()(#383)Added
quantilesparameter tograph.curve.params()and corresponding test intest-graph.curve.params.R(#434)Removed
warn.missing.strata()from API (#366)Added more details about contributing PRs in
Contributing.md(#280)-
Added warnings for missing biomarker data (#168):
- completely missing antigen-isotype in a stratum
- uneven antigen-isotype counts in a stratum (likely from incomplete data)
-
Split dev and release websites into:
Fixed citations in
methodology.qmdarticle (#360)Added outline to pkgdown website (#353)
Added verbose option for
summary.seroincidence()andsummary.seroincidence.by()(#348)Extended
simulate_xsectionalData.Rmdarticle to explorerenew_params = TRUEvsrenew_params = FALSE(#348)
Bug fixes
- Fixed stratification issue in enteric fever vignette (#418)
- Fixed issue in
graph.curve.params()where MCMC samples with the same iteration number from different MCMC chains would get merged byggplot2::aes(group = iter)(#382)
Internal changes
generalized
ab1()added codecov/test-results-action to test-coverage.yaml workflow
added test for censored data in f_dev() (#399)
added test for
autoplot.curve_params()added test for
graph.curve.params()(#368)reverted Readme source file from qmd to Rmd.
switched pkgdown GHA from
any::pkgdowntor-lib/pkgdown(i.e., dev version) (#359)added test for
summary.seroincidence.by()(#352)Started checking for use of base pipe instead of magrittr pipe by linter (#347)
Reverted name change
ldpar()->row_longitudinal_parameter()(#343)
serocalculator 1.3.0
CRAN release: 2025-01-25
New features
Removed function ‘get_additional_data()’ (#332)
Updated documentation examples to include csv files (#328)
Added csv files for use in documentation examples (#329)
Added
serocalculator_example()function to help locate example data files (#329)Fixed a bug in computing the antibody response curve when (#323)
Added example datasets with documentation for examples and testing (#314)
Improved error messaging for
autoplot.pop_data()(#234).Clarified package installation instructions in scrub typhus vignette (#234).
Add
as_noise_params(#228)Updated
simulate_xsectionalData.Rmd(linting, removing deprecated functions) (#289)Added default value for
antigen_isosargument inlog_likelihood()(#286)Updated enteric fever example article with upgraded code and visualizations (#290)
Added template for reporting Issues (from
usethis::use_tidy_issue_template()) (#270)Added template for pull requests (from https://github.com/bcgov/ssdtools) (#265)
Internal changes
Updated documentation to align with previous CRAN feedback (#328)
Updated tests to use internal testing datasets instead of external links (#328)
Updated
test-coverage.ymlGHA action to currentr-libstandard (#330)Change default pipe setting (#312)
Add test for missing strata in
est.incidence.by(#227)Added
snapshot_valuetest forest.incidence()(#315)Sped up
lint-changed-filesGitHub Action (#317)Added online preview builds for PRs that change the
pkgdownwebsite (#309)Added
test-autoplot.pop_datatest (#234)created unit test for
df_to_array()(#276)fixed
dplyr::select()deprecation warning indf_to_array()(#276)Added
devtagto package (usingdevtag::use_devtag()) (#292)Added
@devtag to?df_to_array()(#292)Generalized
get_()andset_()methods to be general-purpose (no S3 class-specific methods needed yet) (#274).Updated GitHub Action files and reformatted
DESCRIPTION(#268)Added
.gitattributesfile (https://git-scm.com/docs/gitattributes) copied from https://github.com/tidyverse/ggplot2Added QR code to
README.qmd-
Added additional automated checks through GitHub actions, including:
- check that
README.qmdstill compiles (advice from preventive-r-package-care) (#259) - check
NEWS.mdfor updated change log (#257) - lint changed files (#256)
- check that
serocalculator 1.2.0
Added
test-summary.pop_datatestModified
test-est.incidencetestAdded stratification to
summary.pop_dataAdded
verboseoption forcheck_pop_data(), changing default behavior to avoid printing an OK message.
serocalculator 1.1.0
Renamed
llik()tolog_likelihood()Renamed
df.to.array()todf_to_array()Renamed
getAdditionalData()toget_additional_data()Removed
clean_pop_data()functionRemove
clean_pop_data()dependency functions documentation examplesAdded
age,value,idandstandardizearguments toload_pop_data()-
Added the following methods to
pop_dataclass:set_age()set_value()set_id_var()get_age()get_values()ids()get_age_var()get_values_var()ids_varname()
Added additional warnings to
load_pop_data()Added
scales::pseudo_log_trans()toautoplot.pop_data()to avoid log 0Added
test-est.incidence-status.Rtest to check output whenstandardizeoption is FALSE onload_pop_data()Replaced column name comparison on
check_pop_data()to use attribute name onpop_dataclass
serocalculator 1.0.1
- added
n_pointsargument toplot_curve_params_one_ab() - Added
type = "age-scatter"option forautoplot.pop_data()
serocalculator 0.5.0
Spell-checking of function documentation and tutorial articles.
-
Added functions and methods:
Renamed
graph.decay.curves.by()toautoplot.curve_params()
serocalculator 0.4.0
plot()methods have been renamed toautoplot(), matching general convention forggplot2-based graphics.added visualization of curve parameters
sim.cs()now hasformatargument to specify long or wide format for output.
serocalculator 0.3.2
Fixed bug in passing antigen_isos from est.incidence.by() to est.incidence().