Releases: koenderks/jfa
Releases · koenderks/jfa
CRAN-v0.7.2
jfa 0.7.2
Minor changes
- In the
auditPrior()
function,method = "factor"
has been replaced withmethod = "power"
to be consistent with existing terminology. selection()
now always performs sampling with replacement when usingitems = "values"
andmethod = "random"
(Thanks to @lottemensink for the suggestion). This should not lead to substantial differences in typical audit populations.
CRAN-v0.7.1
jfa 0.7.1
New features
- Added the option to calculate a frequentist multi-stage sampling plan with the
planning()
function. This can be done by providing a vector of integers to theexpected
argument that specifies the intended sampling plan. For instance,expected = c(1, 0)
gives the sample size for a two-stage sampling plan in which the auditor is allowed to extend the initial sample after finding one misstatement and is allowed to approve the population if the initial sample contains no misstatements. - Added inflated methods to evaluate taintings in the evaluation function via
method = "inflated.poisson"
andmethod = "hurdle.beta"
. Since these methods rely on mcmc sampling, they can take any form of prior. They can also be fitted using maximum likelihood estimation withprior = FALSE
.
Minor changes
- For all plotting functions,
type = "estimates"
is now the default option.
Major changes
- Removed the
report()
function as it did not align with the rest of the functionality in the package.
Bug fixes
- Fixed a bug in
selection()
where the numeric data in the sample was returned as character if the original data was entered as character only (i.e.,selection(data.frame(x = c("hello", "bye", "hi")), size = 2)
). N.units
is now only taken from the prior if the user does not provide it manually to theplanning()
andevaluation()
functions.
CRAN-v0.7.0
jfa 0.7.0
New features
- Added a new function
model_fairness()
to compute fairness metrics for algorithm auditing on the basis of predictions of an algorithm.
Minor changes
- In the
evaluation()
function, the typical stringer bound has been changed frommethod = "stringer"
tomethod = "stringer.binomial"
. Furthermore, additional methodsstringer.poisson
andstringer.hypergeometric
are added that apply the stringer bound using the Poisson and hypergeometric distributions, respectively. Thestringer
method will remain for now but redirect tostringer.binomial
. - Compatibility with
rstantools 2.3.1
.
CRAN-0.6.7
jfa 0.6.7
New features
digit_test()
function now returns elementestimates
containing observed proportions and their corresponding confidence intervals. The plot output also shows these intervals around the estimates.
CRAN-0.6.6
jfa 0.6.6
Bug fixes
- Changed the links to the images in the vignettes from absolute links to GitHub to relative links as to avoid problems with GitHub servers being unavailable in the future.
CRAN-0.6.5
jfa 0.6.5
New features
- Additional possibilities to create, plan and evaluate using nonparametric prior distributions.
- Added functionality for stratified evaluation in the
evaluation()
function. - Integrated the auditing functionality of the
digitTests
package via thedigit_test()
andrepeated_test()
functions.
Bug fixes
- Fixed a bug where the proportion of value in
summary(selection)
was displayed incorrectly.
Minor changes
- Improved the error handling and error messages.
CRAN-v0.6.4
jfa 0.6.4
Minor changes
- Resolved CRAN note
Warning: <img> attribute "align" not allowed for HTML5
. - Improve compatibility with
R 4.2.0
.
CRAN-v0.6.3
jfa 0.6.3
Minor changes
- The value for
x
inevaluation()
andexpected
inplanning()
is now automatically ceiled (while throwing a warning) formethod = "hypergeometric"
. - Improved overall documentation.
CRAN-v0.6.2
jfa 0.6.2
Major changes
- Removed the output and functions related to the class
jfaPredictive
. The probabilities for the prior and posterior predictive distributions can be obtained by calling thepredict()
function.
Minor changes
- The value for
N.units
inauditPrior()
,planning()
, andevaluation()
is now automatically ceiled forlikelihood
/method
='hypergeometric'
. - Implemented a warning message when the
likelihood
in theprior
does not match with thelikelihood
/method
inputs forplanning()
andevaluation()
. The likelihood from the prior is leading in these cases and will overrule the other options.
CRAN-v0.6.1
jfa 0.6.1
New features
- Added argument
randomize
to theselection()
function, which allows the user to randomly shuffle the items in the population before selection. Note that specifyingrandomize = TRUE
overrulesorder
.
Bug fixes
- Fixed a bug where the maximum sample size was not reached (i.e.,
planning
stopped atmax
- 1).
Major changes
- The
order
argument inselection()
no longer accepts a logical, but instead takes the column name of the ranking variable in thedata
.
Minor changes
- Adjusted an error in the text of the selection vignette.
- Rewritten most of the vignettes.