Releases: koenderks/jfa
Releases · koenderks/jfa
CRAN-v0.6.0
jfa 0.6.0
New features
- Added argument
alternative
with possible optionsless
(default),two.sided
, andgreater
to theevaluation()
function that allows control over the type of hypothesis test to perform and the type of confidence / credible interval to calculate. - Added
predict.jfaPrior()
andpredict.jfaPosterior()
that produce predictions for the data under the prior or posterior distribution. - Added
method = 'param'
to functionauditPrior()
which takes as input the rawalpha
andbeta
parameters of the prior distribution. - Added
method = 'strict'
to functionauditPrior()
which constructs an (improper) prior distribution that yields the same results (with respect to sample sizes and upper limits) as classical procedures. - Added the modified seed sampling algorithm (
method = 'sieve')
toselection()
. - Added a new vignette that describes the sampling methodology implemented in
jfa
. - objects from
auditPrior()
,planning()
, andevaluation()
now contain information about the posterior predictive distribution whenN.units
is specified.
Major changes
- From
jfa
0.5.7 tojfa
0.6.0 there has been a major overhaul in the names of function arguments. This is done so that the calls integrate better with general R syntax and the package gets more user-friendly. I apologize for any inconvenience this may cause. The following names have been changed:median
->impartial
(inauditPrior()
)sampleK
->x
(inauditPrior()
)sampleN
->n
(inauditPrior()
)N
->N.units
(inauditPrior()
)maxSize
->max
(inplanning()
)increase
->by
(inplanning()
)withReplacement
->replace
(inselection()
)ordered
->order
(inselection()
)ascending
->decreasing
(inselection()
)intervalStartingPoint
->start
(inselection()
)algorithm
->method
(inselection()
)expectedErrors
->expected
(inauditPrior()
andplanning()
)confidence
->conf.level
(inauditPrior()
,planning()
, andevaluation()
)pHmin
->p.hmin
(inauditPrior()
)minPrecision
->min.precision
(inauditPrior()
,planning()
, andevaluation()
)population
->data
(inselection()
)kSumstats
->x
(inevaluation()
)nSumstats
->n
(inevaluation()
)sample
->data
(inevaluation()
)bookValues
->values
(inselection()
andevaluation()
)auditValues
->values.audit
(inevaluation()
)counts
->times
(inevaluation()
)popBookValues
->N.units
(inevaluation()
)rohrbachDelta
->r.delta
(inevaluation()
)momentPopType
->m.type
(inevaluation()
)csA
->cs.a
(inevaluation()
)csB
->cs.b
(inevaluation()
)csMu
->cs.mu
(inevaluation()
)records
->items
(inselection()
)mus
->values
(inselection()
)hypotheses
->hyp
(inauditPrior()
)
poisson
is now the default likelihood / method for all functions since it is the most conservative.method = 'interval'
is now the default selection method.- The default prior distributions used when
method = 'default'
orprior = TRUE
are now set to thegamma(1, 1)
,beta(1,1)
, andbeta-binomial(1, 1)
priors. - The
times
(formercounts
) argument inevaluation()
must now be indicated as a column name in thedata
instead of a vector. nPrior
andkPrior
have been removed from theplanning()
andevaluation()
functions. All prior distributions must now be specified usingprior = TRUE
(noninformative priors) or using a call toauditPrior()
.- Removed the
auditBF()
function since its value is available throughevaluation(materiality = x, prior = auditPrior(method = 'impartial', materiality = x))
Minor changes
- It is now allowed for
x
andn
to have the same value inevaluation()
. - The parameters for an impartial beta-binomial prior are now calculated more efficiently in the case of zero expected errors.
CRAN-v0.5.7
jfa 0.5.7
Minor changes
- The logo is now displayed in the
?jfa-package
help file. - The cheat sheet link has changed in the RADME file.
CRAN-v0.5.6
jfa 0.5.6
Bug fixes
- Fixed a bug in the
print.jfaEvaluation()
call if there was no performance materiality specified andprior = TRUE
.
CRAN-v0.5.5
jfa 0.5.5
New features
- The
print()
functions now return a more concise description of the relevant output. - Added
summary()
functions for all returned objects that take over the former (elaborate) output of theprint()
functions. - Implemented a new function
auditBF()
which computes Bayes factors from summary statistics of an audit sample.
Bug fixes
- Fixed a bug in
evaluation()
in which the likelihood stored in the prior was not properly passed to the function. - Fixed an error in the calculation of the posterior mode of the beta distribution.
Minor changes
- Restored the default value (0.95) for the 'confidence' argument in all applicable functions.
CRAN-v0.5.4
jfa 0.5.4
New features
- Objects with class
jfaPosterior
as returned byevaluation()$posterior
andplanning()$expectedPosterior
can now be used as input for theprior
argument in theplanning()
andevaluation()
functions.
Bug fixes
- Fixed a bug in
method = 'bram'
in theauditPrior()
function where the prior parameters would go off to infinity whenexpectedError = 0
.
Major changes
- Now calculates the upper bound for the population errors according to the hypergeometric distribution via an inverted hypothesis test. As a result of this method, the
planning()
function does not require a value for themateriality
anymore when planning with thehypergeometric
likelihood.
Minor changes
- Added a benchmark for the
MUS
package to the unit tests. - Improved plots with better titles and axes labels.
CRAN-v0.5.3
jfa 0.5.3
New features
- Made
expectedErrors > 0
available formethod = 'hypotheses'
in theauditPrior()
. - Made
method = 'hypotheses'
andmethod = 'median'
in theauditPrior()
function available forlikelihood = 'hypergeometric'
. - Added
bram
as a method for theauditPrior()
function.method = 'bram'
computes a prior distribution with a given mode (expectedError
) and upper bound (ub
).
Bug fixes
- Fixed an error in the mode of the gamma posterior distribution from the
evaluation()
function in which+1
was added to the beta parameter, resulting in slighly lower modes than the correct ones. - Made a correction to the calculation of the beta-binomial prior and posterior so that the posterior parameter
N
has the correct value ofN = N - n
(current) instead ofN - n + k
(before).
Major changes
- Removed the default value
confidence = 0.95
in all applicable functions.confidence
currently has no default value so that the user is required to give an input. - Changed the default
likelihood = 'poisson'
in theplanning()
function tolikelihood = 'binomial'
to be consistent across all functions. - Changed the order of most function arguments so that
materiality
andminPrecision
are among the first ones to be shown.
Minor changes
- Updated the documentation for all functions with more simple examples.
CRAN-v.0.5.2
jfa 0.5.2
New features
- Update the poisson evaluation calculation so that it allows for fractional errors.
Bug fixes
- Fixed an error in the hypergeometric upper bound calculation that was accidentally based on the
phyper()
function instead of theqhyper()
function, which resulted in lower bounds than usual.
Minor changes
- Add statistical tables with output (sample sizes, upper limits, Bayes factors) to the GitHub repository in pdf format.
- Changed the computation method of the sample sizes for hypergeometric and beta-binomial distributions so that they are faster.
CRAN-v.0.5.1
jfa 0.5.1
Bug fixes
- Reduced the size of the tarball by adding files to the .Rbuildignore
- Fixed a bug in
selection()
where ifpopulation
is sorted or modified,bv
still retained the old ordering and data. The resulting sample was overweighted towards small values and/or still contained negative values (Thanks to @alvanson).
CRAN-v.0.5.0
jfa 0.5.0
New features
- Add a function
report()
that automatically generates an audit report.
Major changes
- Removed the
sampling()
function, which is now replaced entirely with theselection()
function. - Changed the output of the
evaluation()
function when an estimator is used.
CRAN-v.0.4.0
jfa 0.4.0
New features
- Added
digits
argument in the internaljfa:::print.jfaPrior()
,jfa:::print.jfaPlanning()
,jfa:::print.jfaSelection()
, andjfa:::print.jfaEvaluation()
functions to control rounding in printing. - Added
description
,statistics
,specifics
andhypotheses
to the output of theauditPrior()
function. - Added class
jfaPosterior
withprint()
andplot()
methods. - Added
expectedPosterior
of classjfaPosterior
to the output of theplanning()
function, includesdescription
,statistics
andhypotheses
. - Added
posterior
of classjfaPosterior
to the output of theevaluation()
function, includesdescription
,statistics
andhypotheses
.
Bug fixes
- Implemented improved calculation of prior parameters in the
auditPrior()
function formethod = median
whenexpectedErrors > 0
.
Major changes
- Add a warning message to the
sampling()
function that it will be deprecated from 0.5.0 onward. You can useselection()
instead, sincesampling()
causes namespace issues with other packages.
Minor changes
- Changed the class
jfaSampling
tojfaSelection
. This should not have any consequences.