primarycensored 0.6.0
This release renames the package to primarycensored
from primarycensoredist
and also renames many of the functions to remove the dist
in their name. This was done to make the package name and the functions more consistent and to remove the need to use the dist
suffix. It also aligns it with the new PrimaryCensored.jl
package in our Julia ecosystem.
Aside from name changes, this release also adds an analytical solution for the weibull distribution with uniform primary censoring, removes the need to assign functions to the global environment for fitdistdoublecens()
by using withr
, and adds a check_truncation()
function to check if the truncation time is larger than the maximum observed delay. This is used in fitdistdoublecens()
and pcd_as_stan_data()
to ensure that the truncation time is appropriate to maximise computational efficiency.
Package
- Removed the need to assign functions to the global environment for
fitdistdoublecens()
by usingwithr
. - Added a
check_truncation()
function to check if the truncation time is larger than the maximum observed delay. This is used infitdistdoublecens()
andpcd_as_stan_data()
to ensure that the truncation time is appropriate to maximise computational efficiency. pcd_as_cmdstan_data()
has been renamed topcd_as_stan_data()
to better reflect that it is used forStan
models in general rather than just theCmdStan
models.- The stan code has been refactored into a folder of functions within the current
stan
folder and thestan
model has been moved into thestan
folder. All paths to the stan code have been updated to reflect this. - Added R and stan implementations of the primary censored cdf for the weibull distribution with uniform primary censoring.
- The package has been renamed to
primarycensored
as have all functions that use "dist" in their name.
Documentation
- Simplified the "Analytic solutions" vignette by removing verbose derivation details.
- Added links between vignettes to make it easier to navigate the documentation.
- Added explicit usage of
pdist
,dprimary
,rdist
, andrprimary
arguments in the getting started vignette to make it easier to link to mathematical details. - Fixed error in "Analytic solutions" vignette where the Weibull density was not being treated as zero for negative delays.
- Split "Why it works" vignette into two separate vignettes, "Why it works" and "Analytic solutions for censored delay distributions"
Pull requests
- Update codemeta.json by @github-actions in #103
- Issue 72: Split why it works vignette into intro and analytic solutions vignette by @SamuelBrand1 in #106
- Bump JamesIves/github-pages-deploy-action from 4.6.4 to 4.6.8 by @dependabot in #110
- Update README by @github-actions in #111
- use local environment for
fitdist
call by @sbfnk in #113 - Update codemeta.json by @github-actions in #114
- Update README by @github-actions in #115
- Issue #84: Prune not helpful to arg flow maths by @seabbs in #116
- Issue #82: Link between vignettes by @seabbs in #118
- Issue #69: Add check_truncation by @seabbs in #120
- Update README by @github-actions in #121
- Issue 109: Add explicit dist and primary arg usage to getting started by @seabbs in #122
- Issue 70: Restructure stan code by @seabbs in #123
- Issue 125: Update analytic solutions to deal with possible neg t values by @SamuelBrand1 in #126
- Issue 94: Add R and Stan for analytical Weibull by @seabbs in #109
- Update codemeta.json by @github-actions in #128
- Issue #108: Rename from primarycensoreddist to primarycensored by @seabbs in #130
- Update README by @github-actions in #132
- Update codemeta.json by @github-actions in #131
New Contributors
Full Changelog: v0.5.0...v0.6.0