This minor release improves the documentation and the internal system used to automatically discover analytical solutions. It also adds lookups for supported supported distributions and tooling for working with these lookups. This makes it easier for package developers using primarycensored
and also makes it easier to work with the Stan likelihood functions by improving the discoverability of the distribution functions. Minor bugs were also fixed.
Package
- Updated the CI so that stan code is also tested on Windows and Mac. This is to ensure that the stan code is compatible with these platforms and in response to a CI bug in
epidist
. - Revised approach to automatic discovery of distribution functions. This soft deprecates the
pdist_name
anddprimary_name
arguments throughout. Users wishing to pass distribution names (i.e. to potentially leverage analytical solutions) are advised to use the newly introducedadd_name_attribute()
function. Adds transient dependency onlifecycle
andrlang
packages. See #188 by @pearsonca. - Added
pcd_stan_dist_id()
to allow for discovery of distribution IDs for Stan models. - Added
pcd_dist_name()
to allow for discovery of distribution names for R functions as needed foradd_name_attribute()
. - Added documentation to suggest the use of
methods(pcens_cdf)
to find analytical solutions. - Added new data sets
pcd_distributions
andpcd_primary_distributions
to document the distributions supported byprimarycensored
.
Documentation
- Added a CRAN downloads badge to the README.
- Corrected how to specify an empty array in the docs of
primarycensored_lcdf()
. - All documentation was reviewed and updated to enhance readability and clarity.
Bug fixes
- Added a missing
@family
tag to thepcens
functions. This omission resulted in the Weibull analytical solution not being visible in the package documentation. - Added precalculation of vector sizes to the
primarycensored_cdf()
stan function, avoiding errors on some platforms due to narrowing conversions in aggregate initialisation. - Changed
D
to be of type real inpcens_model.stan
in order to support infiniterelative_obs_time
. - Switched to using
num_elements()
oversize()
in all stan code to resolve compilation issues on some platforms as reported by @sbfnk.
Pull requests
- Update codemeta.json by @github-actions in #165
- Update README by @github-actions in #167
- Remove duplicate line in vignette by @athowes in #173
- Bump JamesIves/github-pages-deploy-action from 4.6.8 to 4.6.9 by @dependabot in #168
- Bump JamesIves/github-pages-deploy-action from 4.6.9 to 4.7.1 by @dependabot in #174
- 177: use
num_elements
instead ofsize
by @sbfnk in #178 - 179: make D real by @sbfnk in #180
- 181: pre-assign sizes to variables by @sbfnk in #182
- Update codemeta.json by @github-actions in #183
- Bump JamesIves/github-pages-deploy-action from 4.7.1 to 4.7.2 by @dependabot in #176
- Update README by @github-actions in #185
- Use correct specification of empty array by @jamesmbaazam in #186
- Turn on stan testing for mac and windows on CI by @seabbs in #189
- Bump mattnotmitt/doxygen-action from 1.9.8 to 1.12.0 by @dependabot in #190
- Pdist naming alt by @pearsonca in #188
- Update README by @github-actions in #191
- Update codemeta.json by @github-actions in #192
- Issue #193: Swap to num_elements from size by @seabbs in #194
- Issue #175: Add distribution look up tables and associated tooling by @seabbs in #195
- Update README by @github-actions in #197
- Documentation review changes by @seabbs in #198
- Update README by @github-actions in #200
New Contributors
- @jamesmbaazam made their first contribution in #186
- @pearsonca made their first contribution in #188
Full Changelog: v1.0.0...v1.1.0